#2A42B5#2A42B5
#2A42B5 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.183 H 268.4°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2A42B5 |
|---|---|
| RGB | rgb(42, 66, 181) |
| HSL | hsl(230, 62%, 44%) |
| HSV | hsv(230, 77%, 71%) |
| CMYK | cmyk(76.8%, 63.5%, 0%, 29%) |
| CIE-LAB | lab(33.40, 32.49, -63.37) |
| CIE-LCH | lch(33.40, 71.21, 297.15°) |
| OKLab | oklab(43.86% -0.0052 -0.1832) |
| OKLCH | oklch(43.86% 0.183 268.4) |
| XYZ | xyz(11.2407, 7.7236, 44.6055) |
| Luminance | 0.0772 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.33
Sapphire (survey)
#2138AB
ΔE00 3.13
Cobalt
#0047AB
ΔE00 4.37
Ocean Blue
#4F42B5
ΔE00 4.92
Blue (survey)
#0343DF
ΔE00 5.16
Blueberry
#464196
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A42B5 #B59D2A
analogous
#2A87B5 #2A42B5 #572AB5
triadic
#2A42B5 #B52A42 #42B52A
tetradic
#2A42B5 #B52A87 #B59D2A #2AB557
square
#2A42B5 #B52A87 #B59D2A #2AB557
split-complementary
#2A42B5 #B5572A #87B52A
monochromatic
#131E52 #1E3083 #2A42B5 #4860D4 #798BE0
Accessibility & contrast
On white
8.25
#2A42B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#2A42B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A42B5
8.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A42B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A42B5 | 1.00 | 8.25 | 2.55 | 8.25 |
| #FFFFFF | 8.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2a42b5; /* rgb */ color: rgb(42, 66, 181); /* oklch */ color: oklch(43.9% 0.183 268.4);
Tailwind
colors: {
custom: {
50: '#7a76cc',
500: '#2a42b5',
950: '#000000',
},
}SCSS
$custom: #2a42b5; $custom-light: #7a76cc; $custom-dark: #000000;
JSON
{
"hex": "#2a42b5",
"rgb": {
"r": 42,
"g": 66,
"b": 181
},
"hsl": {
"h": 229.64,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.43855,
"c": 0.18333,
"h": 268.4
},
"luminance": 0.07725
}Semantic roles & 50–950 ramp
primary
#2A42B5
secondary
#C8B973
accent
#C942E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82