#2E317D#2E317D
#2E317D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.126 H 276.3°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2E317D |
|---|---|
| RGB | rgb(46, 49, 125) |
| HSL | hsl(238, 46%, 34%) |
| HSV | hsv(238, 63%, 49%) |
| CMYK | cmyk(63.2%, 60.8%, 0%, 51%) |
| CIE-LAB | lab(24.51, 23.67, -43.68) |
| CIE-LCH | lch(24.51, 49.68, 298.45°) |
| OKLab | oklab(35.87% 0.0138 -0.1255) |
| OKLCH | oklch(35.87% 0.126 276.3) |
| XYZ | xyz(5.9255, 4.2577, 19.9076) |
| Luminance | 0.0426 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.23
Blueberry
#464196
ΔE00 6.14
Midnight Blue
#191970
ΔE00 6.76
Sapphire (survey)
#2138AB
ΔE00 7.17
Marine
#042E60
ΔE00 7.71
Royal
#0C1793
ΔE00 8.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E317D #7D7A2E
analogous
#2E587D #2E317D #522E7D
triadic
#2E317D #7D2E31 #317D2E
tetradic
#2E317D #7D2E58 #7D7A2E #2E7D52
square
#2E317D #7D2E58 #7D7A2E #2E7D52
split-complementary
#2E317D #7D522E #587D2E
monochromatic
#0D0E24 #1E1F50 #2E317D #3E43AA #6164C5
Accessibility & contrast
On white
11.34
#2E317D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#2E317D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E317D
11.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E317D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E317D | 1.00 | 11.34 | 1.85 | 11.34 |
| #FFFFFF | 11.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2e317d; /* rgb */ color: rgb(46, 49, 125); /* oklch */ color: oklch(35.9% 0.126 276.3);
Tailwind
colors: {
custom: {
50: '#7069a3',
500: '#2e317d',
950: '#000000',
},
}SCSS
$custom: #2e317d; $custom-light: #7069a3; $custom-dark: #000000;
JSON
{
"hex": "#2e317d",
"rgb": {
"r": 46,
"g": 49,
"b": 125
},
"hsl": {
"h": 237.722,
"s": 46.199,
"l": 33.529
},
"oklch": {
"l": 0.35867,
"c": 0.12629,
"h": 276.3
},
"luminance": 0.04258
}Semantic roles & 50–950 ramp
primary
#2E317D
secondary
#ABA85B
accent
#D152D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F