#2E42AA#2E42AA
#2E42AA is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.168 H 269.6°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2E42AA |
|---|---|
| RGB | rgb(46, 66, 170) |
| HSL | hsl(230, 57%, 42%) |
| HSV | hsv(230, 73%, 67%) |
| CMYK | cmyk(72.9%, 61.2%, 0%, 33.3%) |
| CIE-LAB | lab(32.65, 28.88, -58.03) |
| CIE-LCH | lch(32.65, 64.82, 296.46°) |
| OKLab | oklab(43.07% -0.0012 -0.1675) |
| OKLCH | oklch(43.07% 0.168 269.6) |
| XYZ | xyz(10.3281, 7.3785, 38.9023) |
| Luminance | 0.0738 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.99
Blue Blue
#2242C7
ΔE00 3.84
Cobalt
#0047AB
ΔE00 4.12
Blueberry
#464196
ΔE00 4.84
Ocean Blue
#4F42B5
ΔE00 5.18
Cobalt (survey)
#1E488F
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E42AA #AA962E
analogous
#2E80AA #2E42AA #582EAA
triadic
#2E42AA #AA2E42 #42AA2E
tetradic
#2E42AA #AA2E80 #AA962E #2EAA58
square
#2E42AA #AA2E80 #AA962E #2EAA58
split-complementary
#2E42AA #AA582E #80AA2E
monochromatic
#141D4A #212F7A #2E42AA #485DCD #7888DA
Accessibility & contrast
On white
8.48
#2E42AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#2E42AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E42AA
8.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E42AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E42AA | 1.00 | 8.48 | 2.48 | 8.48 |
| #FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2e42aa; /* rgb */ color: rgb(46, 66, 170); /* oklch */ color: oklch(43.1% 0.168 269.6);
Tailwind
colors: {
custom: {
50: '#7876c4',
500: '#2e42aa',
950: '#000000',
},
}SCSS
$custom: #2e42aa; $custom-light: #7876c4; $custom-dark: #000000;
JSON
{
"hex": "#2e42aa",
"rgb": {
"r": 46,
"g": 66,
"b": 170
},
"hsl": {
"h": 230.323,
"s": 57.407,
"l": 42.353
},
"oklch": {
"l": 0.43065,
"c": 0.16753,
"h": 269.6
},
"luminance": 0.0738
}Semantic roles & 50–950 ramp
primary
#2E42AA
secondary
#C3B571
accent
#C847E1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82