#2E318E#2E318E
#2E318E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.150 H 275.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2E318E |
|---|---|
| RGB | rgb(46, 49, 142) |
| HSL | hsl(238, 51%, 37%) |
| HSV | hsv(238, 68%, 56%) |
| CMYK | cmyk(67.6%, 65.5%, 0%, 44.3%) |
| CIE-LAB | lab(25.95, 29.81, -51.95) |
| CIE-LCH | lch(25.95, 59.90, 299.85°) |
| OKLab | oklab(37.38% 0.013 -0.1498) |
| OKLCH | oklch(37.38% 0.15 275) |
| XYZ | xyz(7.1059, 4.7298, 26.1244) |
| Luminance | 0.0473 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.65
Darkslateblue
#483D8B
ΔE00 5.22
Blueberry
#464196
ΔE00 5.32
Royal
#0C1793
ΔE00 6.76
Midnight Blue
#191970
ΔE00 7.36
Indigo Blue
#3A18B1
ΔE00 7.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E318E #8E8B2E
analogous
#2E618E #2E318E #5B2E8E
triadic
#2E318E #8E2E31 #318E2E
tetradic
#2E318E #8E2E61 #8E8B2E #2E8E5B
square
#2E318E #8E2E61 #8E8B2E #2E8E5B
split-complementary
#2E318E #8E5B2E #618E2E
monochromatic
#101132 #1F2160 #2E318E #3D41BC #686BCE
Accessibility & contrast
On white
10.79
#2E318E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#2E318E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E318E
10.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E318E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E318E | 1.00 | 10.79 | 1.95 | 10.79 |
| #FFFFFF | 10.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2e318e; /* rgb */ color: rgb(46, 49, 142); /* oklch */ color: oklch(37.4% 0.150 275.0);
Tailwind
colors: {
custom: {
50: '#7369b0',
500: '#2e318e',
950: '#000000',
},
}SCSS
$custom: #2e318e; $custom-light: #7369b0; $custom-dark: #000000;
JSON
{
"hex": "#2e318e",
"rgb": {
"r": 46,
"g": 49,
"b": 142
},
"hsl": {
"h": 238.125,
"s": 51.064,
"l": 36.863
},
"oklch": {
"l": 0.37381,
"c": 0.15039,
"h": 275
},
"luminance": 0.0473
}Semantic roles & 50–950 ramp
primary
#2E318E
secondary
#B5B263
accent
#D64DDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80