#2E2A76#2E2A76
#2E2A76 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.126 H 279.7°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2E2A76 |
|---|---|
| RGB | rgb(46, 42, 118) |
| HSL | hsl(243, 48%, 31%) |
| HSV | hsv(243, 64%, 46%) |
| CMYK | cmyk(61%, 64.4%, 0%, 53.7%) |
| CIE-LAB | lab(22.10, 25.86, -43.14) |
| CIE-LCH | lch(22.10, 50.29, 300.94°) |
| OKLab | oklab(33.92% 0.0211 -0.124) |
| OKLCH | oklch(33.92% 0.126 279.7) |
| XYZ | xyz(5.2237, 3.5444, 17.5449) |
| Luminance | 0.0355 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.89
Darkslateblue
#483D8B
ΔE00 6.51
Royal
#0C1793
ΔE00 7.39
Blueberry
#464196
ΔE00 7.86
Marine
#042E60
ΔE00 8.45
Sapphire (survey)
#2138AB
ΔE00 8.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E2A76 #72762A
analogous
#2A4C76 #2E2A76 #542A76
triadic
#2E2A76 #762E2A #2A762E
tetradic
#2E2A76 #762A4C #72762A #2A7654
square
#2E2A76 #762A4C #72762A #2A7654
split-complementary
#2E2A76 #76542A #4C762A
monochromatic
#0B0A1C #1C1A49 #2E2A76 #403AA3 #5D57C3
Accessibility & contrast
On white
12.29
#2E2A76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2E2A76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E2A76
12.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E2A76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E2A76 | 1.00 | 12.29 | 1.71 | 12.29 |
| #FFFFFF | 12.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003878
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2e2a76; /* rgb */ color: rgb(46, 42, 118); /* oklch */ color: oklch(33.9% 0.126 279.7);
Tailwind
colors: {
custom: {
50: '#6f649e',
500: '#2e2a76',
950: '#000000',
},
}SCSS
$custom: #2e2a76; $custom-light: #6f649e; $custom-dark: #000000;
JSON
{
"hex": "#2e2a76",
"rgb": {
"r": 46,
"g": 42,
"b": 118
},
"hsl": {
"h": 243.158,
"s": 47.5,
"l": 31.373
},
"oklch": {
"l": 0.33915,
"c": 0.12578,
"h": 279.7
},
"luminance": 0.03545
}Semantic roles & 50–950 ramp
primary
#2E2A76
secondary
#A3A854
accent
#D751D0
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E