Blue
#0000FFrgb(0, 0, 255)hsl(240, 100%, 50%)
Blue is #0000FF, rgb(0, 0, 255). Short form: #00F, the exact same color.
In CSS: blue
1 of 2 backgrounds pass AA
- On whitePass8.59 : 1
- On ink blackFail2.23 : 1
About Blue
Blue is the hex color #0000FF, which translates to rgb(0, 0, 255) in RGB and hsl(240, 100%, 50%) in HSL. On the color wheel it sits at 240 degrees, with a saturation of 100 percent and a lightness of 50 percent. Its OKLCH chroma of 0.313 is high, so Blue is one of the more vivid blue tones here and is easy to overuse at large sizes.
How Blue compares
Blue is exactly the CSS keyword blue, so you can write the keyword instead of the hex and get an identical result. In the Tailwind CSS 4.3.1 palette the nearest token is violet-600 (#7F22FE), at a distance of 20.5. Inside this library the closest neighbour is Electric Violet at 13.3. Sorted by lightness, Blue is number 15 of the 30 blue colors here.
Text on Blue
2 of the five common text colors below clear WCAG AA for normal text on Blue, led by White at 8.59:1. The ratios are computed with the WCAG relative luminance formula, the same one the contrast checker uses, which opens with Blue already loaded as the background.
| Text color | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White #FFFFFF | 8.59:1 | Pass | Pass | Pass |
| Ink black #0F0F12 | 2.23:1 | Fail | Fail | Fail |
| Mid grey #6B7280 | 1.78:1 | Fail | Fail | Fail |
| Dark grey #374151 | 1.20:1 | Fail | Fail | Fail |
| Light grey #E5E7EB | 6.94:1 | Pass | Pass | Fail |
Building a palette around Blue
The pairings above give you three classic starting points. The complementary color sits opposite on the wheel and works well as an accent that draws the eye. The analogous colors sit right beside Blue for calmer, harmonious combinations. The triadic pair spaces three hues evenly for a balanced, energetic palette. Open any swatch to explore it as its own color, or open the palette generator with Blue locked and let it fill in the rest.
Full values for Blue
| Format | Value |
|---|---|
| HEX | #0000FF |
| RGB | rgb(0, 0, 255) |
| HSL | hsl(240, 100%, 50%) |
| HSV | hsv(240, 100%, 100%) |
| CMYK | cmyk(100%, 100%, 0%, 0%) |
| OKLCH | oklch(45.20% 0.3132 264.05) |
| CIELAB | lab(32.30 79.19 -107.86) |
Frequently asked questions
What is the RGB value of Blue?
Blue (#0000FF) is rgb(0, 0, 255): 0 red, 0 green and 255 blue on the 0 to 255 scale. Blue leads at 255 while red and green both sit at 0, which puts the hue at 240 degrees. In HSL the same color is hsl(240, 100%, 50%).
What colour is #0000FF?
#0000FF is Blue, a mid blue colour with a hue of 240 degrees, 100% saturation and 50% lightness. For print the CMYK breakdown is 100% cyan, 100% magenta, 0% yellow and 0% black. Its nearest neighbour in this library is Electric Violet, 13.3 away in CIELAB, a difference you can see.
Is Blue a CSS color name?
Yes. The keyword blue is one of the 148 named colors in CSS Color Module Level 4, so color: blue; renders exactly #0000FF.
Is #00F the same as #0000FF?
Yes. In a 3-digit hex code every digit is doubled, so #00F expands to #0000FF, which is Blue. Browsers render both identically; the short form only saves three characters.
What colors go with Blue?
Opposite Blue on the color wheel sits the complementary #FFFF00 (Yellow), the boldest accent by hue. For a calmer scheme use the analogous neighbours #0080FF (close to Azure) and #8000FF (close to Violet Wheel); for a balanced three-color scheme use the triadic pair #FF0000 (Red) and #00FF00 (Lime). Of these, #FFFF00 has the most contrast against Blue, at 8.00:1, enough for icons and large text.
What text color is readable on Blue?
White (#FFFFFF) is the most readable on Blue, at 8.59:1, which also clears WCAG AAA (7:1). 2 of the 5 common text colors tested pass AA for normal text.
Use Blue in a tool
Nearby colors
Last updated by FusionStudios. Every value on this page is computed by the same functions the tools use. How this is calculated.