#2A04FF#2A04FF
#2A04FF is a mid, highly saturated blue. Relative luminance 0.078; OKLCH L 46.3% C 0.305 H 268.8°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2A04FF |
|---|---|
| RGB | rgb(42, 4, 255) |
| HSL | hsl(249, 100%, 51%) |
| HSV | hsv(249, 98%, 100%) |
| CMYK | cmyk(83.5%, 98.4%, 0%, 0%) |
| CIE-LAB | lab(33.56, 78.97, -105.73) |
| CIE-LCH | lch(33.56, 131.96, 306.76°) |
| OKLab | oklab(46.35% -0.0065 -0.3053) |
| OKLCH | oklch(46.35% 0.305 268.8) |
| XYZ | xyz(19.0421, 7.7967, 95.0896) |
| Luminance | 0.0780 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue
#0000FF
ΔE00 1.18
Primary Blue
#0804F9
ΔE00 1.55
Strong Blue
#0C06F7
ΔE00 1.66
Rich Blue
#021BF9
ΔE00 1.79
Blue Purple
#5A06EF
ΔE00 3.33
Blue Violet
#5D06E9
ΔE00 3.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A04FF #D9FF04
analogous
#045BFF #2A04FF #A804FF
triadic
#2A04FF #FF2A04 #04FF2A
tetradic
#2A04FF #FF045B #D9FF04 #04FFA8
square
#2A04FF #FF045B #D9FF04 #04FFA8
split-complementary
#2A04FF #FFA804 #5BFF04
monochromatic
#150089 #1E00C6 #2A04FF #5E41FF #927EFF
Accessibility & contrast
On white
8.20
#2A04FF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.56
#2A04FF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A04FF
8.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A04FF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A04FF | 1.00 | 8.20 | 2.56 | 8.20 |
| #FFFFFF | 8.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AFF
Deuteranopia (green-blind)
#0042FB
Tritanopia (blue-blind)
#006B96
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2a04ff; /* rgb */ color: rgb(42, 4, 255); /* oklch */ color: oklch(46.3% 0.305 268.8);
Tailwind
colors: {
custom: {
50: '#8f5fff',
500: '#2a04ff',
950: '#000000',
},
}SCSS
$custom: #2a04ff; $custom-light: #8f5fff; $custom-dark: #000000;
JSON
{
"hex": "#2a04ff",
"rgb": {
"r": 42,
"g": 4,
"b": 255
},
"hsl": {
"h": 249.084,
"s": 100,
"l": 50.784
},
"oklch": {
"l": 0.46347,
"c": 0.30537,
"h": 268.8
},
"luminance": 0.07799
}Semantic roles & 50–950 ramp
primary
#2A04FF
secondary
#D6E778
accent
#FF29DF
background
#FAF6FF
surface
#F4EBFF
border
#CEC6D7
text
#100618
muted
#7F7A86