#2E2B78#2E2B78
#2E2B78 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.127 H 279.0°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2E2B78 |
|---|---|
| RGB | rgb(46, 43, 120) |
| HSL | hsl(242, 47%, 32%) |
| HSV | hsv(242, 64%, 47%) |
| CMYK | cmyk(61.7%, 64.2%, 0%, 52.9%) |
| CIE-LAB | lab(22.53, 25.90, -43.72) |
| CIE-LCH | lch(22.53, 50.82, 300.64°) |
| OKLab | oklab(34.28% 0.02 -0.1257) |
| OKLCH | oklch(34.28% 0.127 279) |
| XYZ | xyz(5.3797, 3.6643, 18.1894) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.11
Darkslateblue
#483D8B
ΔE00 6.25
Royal
#0C1793
ΔE00 7.32
Blueberry
#464196
ΔE00 7.52
Marine
#042E60
ΔE00 8.38
Sapphire (survey)
#2138AB
ΔE00 8.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E2B78 #75782B
analogous
#2B4F78 #2E2B78 #552B78
triadic
#2E2B78 #782E2B #2B782E
tetradic
#2E2B78 #782B4F #75782B #2B7855
square
#2E2B78 #782B4F #75782B #2B7855
split-complementary
#2E2B78 #78552B #4F782B
monochromatic
#0B0B1E #1D1B4B #2E2B78 #3F3BA5 #5E5AC4
Accessibility & contrast
On white
12.12
#2E2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2E2B78 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E2B78
12.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E2B78 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E2B78 | 1.00 | 12.12 | 1.73 | 12.12 |
| #FFFFFF | 12.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2e2b78; /* rgb */ color: rgb(46, 43, 120); /* oklch */ color: oklch(34.3% 0.127 279.0);
Tailwind
colors: {
custom: {
50: '#6f64a0',
500: '#2e2b78',
950: '#000000',
},
}SCSS
$custom: #2e2b78; $custom-light: #6f64a0; $custom-dark: #000000;
JSON
{
"hex": "#2e2b78",
"rgb": {
"r": 46,
"g": 43,
"b": 120
},
"hsl": {
"h": 242.338,
"s": 47.239,
"l": 31.961
},
"oklch": {
"l": 0.3428,
"c": 0.12729,
"h": 279
},
"luminance": 0.03665
}Semantic roles & 50–950 ramp
primary
#2E2B78
secondary
#A6AA55
accent
#D751D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E