#2E42A2#2E42A2
#2E42A2 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.157 H 269.5°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).
Color values
| HEX | #2E42A2 |
|---|---|
| RGB | rgb(46, 66, 162) |
| HSL | hsl(230, 56%, 41%) |
| HSV | hsv(230, 72%, 64%) |
| CMYK | cmyk(71.6%, 59.3%, 0%, 36.5%) |
| CIE-LAB | lab(32.00, 25.91, -54.29) |
| CIE-LCH | lch(32.00, 60.16, 295.51°) |
| OKLab | oklab(42.38% -0.0013 -0.1566) |
| OKLCH | oklch(42.38% 0.157 269.5) |
| XYZ | xyz(9.5943, 7.0849, 35.0373) |
| Luminance | 0.0709 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.41
Cobalt
#0047AB
ΔE00 4.01
Blueberry
#464196
ΔE00 4.42
Blue Blue
#2242C7
ΔE00 5.00
Cobalt (survey)
#1E488F
ΔE00 5.22
Ocean Blue
#4F42B5
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E42A2 #A28E2E
analogous
#2E7CA2 #2E42A2 #542EA2
triadic
#2E42A2 #A22E42 #42A22E
tetradic
#2E42A2 #A22E7C #A28E2E #2EA254
square
#2E42A2 #A22E7C #A28E2E #2EA254
split-complementary
#2E42A2 #A2542E #7CA22E
monochromatic
#131B43 #202F72 #2E42A2 #435BCA #7384D7
Accessibility & contrast
On white
8.69
#2E42A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#2E42A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E42A2
8.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E42A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E42A2 | 1.00 | 8.69 | 2.42 | 8.69 |
| #FFFFFF | 8.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2e42a2; /* rgb */ color: rgb(46, 66, 162); /* oklch */ color: oklch(42.4% 0.157 269.5);
Tailwind
colors: {
custom: {
50: '#7776be',
500: '#2e42a2',
950: '#000000',
},
}SCSS
$custom: #2e42a2; $custom-light: #7776be; $custom-dark: #000000;
JSON
{
"hex": "#2e42a2",
"rgb": {
"r": 46,
"g": 66,
"b": 162
},
"hsl": {
"h": 229.655,
"s": 55.769,
"l": 40.784
},
"oklch": {
"l": 0.42375,
"c": 0.15657,
"h": 269.5
},
"luminance": 0.07086
}Semantic roles & 50–950 ramp
primary
#2E42A2
secondary
#BFB16D
accent
#C549DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81