#2E42A9#2E42A9
#2E42A9 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.166 H 269.6°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2E42A9 |
|---|---|
| RGB | rgb(46, 66, 169) |
| HSL | hsl(230, 57%, 42%) |
| HSV | hsv(230, 73%, 66%) |
| CMYK | cmyk(72.8%, 60.9%, 0%, 33.7%) |
| CIE-LAB | lab(32.57, 28.51, -57.57) |
| CIE-LCH | lch(32.57, 64.24, 296.35°) |
| OKLab | oklab(42.98% -0.0012 -0.1662) |
| OKLCH | oklch(42.98% 0.166 269.6) |
| XYZ | xyz(10.2339, 7.3408, 38.4060) |
| Luminance | 0.0734 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.02
Blue Blue
#2242C7
ΔE00 3.98
Cobalt
#0047AB
ΔE00 4.09
Blueberry
#464196
ΔE00 4.78
Ocean Blue
#4F42B5
ΔE00 5.26
Cobalt (survey)
#1E488F
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E42A9 #A9952E
analogous
#2E80A9 #2E42A9 #582EA9
triadic
#2E42A9 #A92E42 #42A92E
tetradic
#2E42A9 #A92E80 #A9952E #2EA958
square
#2E42A9 #A92E80 #A9952E #2EA958
split-complementary
#2E42A9 #A9582E #80A92E
monochromatic
#141C49 #212F79 #2E42A9 #475DCD #7787DA
Accessibility & contrast
On white
8.51
#2E42A9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#2E42A9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E42A9
8.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E42A9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E42A9 | 1.00 | 8.51 | 2.47 | 8.51 |
| #FFFFFF | 8.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052AC
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2e42a9; /* rgb */ color: rgb(46, 66, 169); /* oklch */ color: oklch(43.0% 0.166 269.6);
Tailwind
colors: {
custom: {
50: '#7876c3',
500: '#2e42a9',
950: '#000000',
},
}SCSS
$custom: #2e42a9; $custom-light: #7876c3; $custom-dark: #000000;
JSON
{
"hex": "#2e42a9",
"rgb": {
"r": 46,
"g": 66,
"b": 169
},
"hsl": {
"h": 230.244,
"s": 57.209,
"l": 42.157
},
"oklch": {
"l": 0.42977,
"c": 0.16617,
"h": 269.6
},
"luminance": 0.07342
}Semantic roles & 50–950 ramp
primary
#2E42A9
secondary
#C2B571
accent
#C847E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82