#2E2F81#2E2F81
#2E2F81 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.135 H 276.6°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2E2F81 |
|---|---|
| RGB | rgb(46, 47, 129) |
| HSL | hsl(239, 47%, 34%) |
| HSV | hsv(239, 64%, 51%) |
| CMYK | cmyk(64.3%, 63.6%, 0%, 49.4%) |
| CIE-LAB | lab(24.32, 26.45, -46.50) |
| CIE-LCH | lch(24.32, 53.50, 299.63°) |
| OKLab | oklab(35.83% 0.0156 -0.1339) |
| OKLCH | oklch(35.83% 0.135 276.6) |
| XYZ | xyz(6.1044, 4.1984, 21.2533) |
| Luminance | 0.0420 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.35
Blueberry
#464196
ΔE00 6.17
Midnight Blue
#191970
ΔE00 6.23
Sapphire (survey)
#2138AB
ΔE00 6.67
Royal
#0C1793
ΔE00 7.21
Marine
#042E60
ΔE00 8.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E2F81 #81802E
analogous
#2E5981 #2E2F81 #572E81
triadic
#2E2F81 #812E2F #2F812E
tetradic
#2E2F81 #812E59 #81802E #2E8157
square
#2E2F81 #812E59 #81802E #2E8157
split-complementary
#2E2F81 #81572E #59812E
monochromatic
#0E0E27 #1E1F54 #2E2F81 #3E3FAE #6263C7
Accessibility & contrast
On white
11.41
#2E2F81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#2E2F81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E2F81
11.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E2F81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E2F81 | 1.00 | 11.41 | 1.84 | 11.41 |
| #FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2e2f81; /* rgb */ color: rgb(46, 47, 129); /* oklch */ color: oklch(35.8% 0.135 276.6);
Tailwind
colors: {
custom: {
50: '#7167a6',
500: '#2e2f81',
950: '#000000',
},
}SCSS
$custom: #2e2f81; $custom-light: #7167a6; $custom-dark: #000000;
JSON
{
"hex": "#2e2f81",
"rgb": {
"r": 46,
"g": 47,
"b": 129
},
"hsl": {
"h": 239.277,
"s": 47.429,
"l": 34.314
},
"oklch": {
"l": 0.35832,
"c": 0.13478,
"h": 276.6
},
"luminance": 0.04199
}Semantic roles & 50–950 ramp
primary
#2E2F81
secondary
#AEAD5D
accent
#D551D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F