#2E317E#2E317E
#2E317E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.128 H 276.2°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2E317E |
|---|---|
| RGB | rgb(46, 49, 126) |
| HSL | hsl(238, 47%, 34%) |
| HSV | hsv(238, 63%, 49%) |
| CMYK | cmyk(63.5%, 61.1%, 0%, 50.6%) |
| CIE-LAB | lab(24.59, 24.03, -44.18) |
| CIE-LCH | lch(24.59, 50.29, 298.54°) |
| OKLab | oklab(35.95% 0.0138 -0.127) |
| OKLCH | oklch(35.95% 0.128 276.2) |
| XYZ | xyz(5.9897, 4.2834, 20.2457) |
| Luminance | 0.0428 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.19
Blueberry
#464196
ΔE00 6.06
Midnight Blue
#191970
ΔE00 6.76
Sapphire (survey)
#2138AB
ΔE00 7.00
Marine
#042E60
ΔE00 7.80
Royal
#0C1793
ΔE00 8.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E317E #7E7B2E
analogous
#2E597E #2E317E #532E7E
triadic
#2E317E #7E2E31 #317E2E
tetradic
#2E317E #7E2E59 #7E7B2E #2E7E53
square
#2E317E #7E2E59 #7E7B2E #2E7E53
split-complementary
#2E317E #7E532E #597E2E
monochromatic
#0D0E24 #1E2051 #2E317E #3E42AB #6165C5
Accessibility & contrast
On white
11.31
#2E317E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#2E317E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E317E
11.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E317E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E317E | 1.00 | 11.31 | 1.86 | 11.31 |
| #FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2e317e; /* rgb */ color: rgb(46, 49, 126); /* oklch */ color: oklch(36.0% 0.128 276.2);
Tailwind
colors: {
custom: {
50: '#7069a4',
500: '#2e317e',
950: '#000000',
},
}SCSS
$custom: #2e317e; $custom-light: #7069a4; $custom-dark: #000000;
JSON
{
"hex": "#2e317e",
"rgb": {
"r": 46,
"g": 49,
"b": 126
},
"hsl": {
"h": 237.75,
"s": 46.512,
"l": 33.725
},
"oklch": {
"l": 0.35953,
"c": 0.12775,
"h": 276.2
},
"luminance": 0.04284
}Semantic roles & 50–950 ramp
primary
#2E317E
secondary
#ACA95C
accent
#D152D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F