#2E317F#2E317F
#2E317F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.129 H 276.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).
Color values
| HEX | #2E317F |
|---|---|
| RGB | rgb(46, 49, 127) |
| HSL | hsl(238, 47%, 34%) |
| HSV | hsv(238, 64%, 50%) |
| CMYK | cmyk(63.8%, 61.4%, 0%, 50.2%) |
| CIE-LAB | lab(24.67, 24.39, -44.67) |
| CIE-LCH | lch(24.67, 50.90, 298.63°) |
| OKLab | oklab(36.04% 0.0137 -0.1285) |
| OKLCH | oklch(36.04% 0.129 276.1) |
| XYZ | xyz(6.0545, 4.3093, 20.5873) |
| Luminance | 0.0431 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.15
Blueberry
#464196
ΔE00 5.98
Midnight Blue
#191970
ΔE00 6.76
Sapphire (survey)
#2138AB
ΔE00 6.84
Marine
#042E60
ΔE00 7.90
Royal
#0C1793
ΔE00 7.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E317F #7F7C2E
analogous
#2E5A7F #2E317F #542E7F
triadic
#2E317F #7F2E31 #317F2E
tetradic
#2E317F #7F2E5A #7F7C2E #2E7F54
square
#2E317F #7F2E5A #7F7C2E #2E7F54
split-complementary
#2E317F #7F542E #5A7F2E
monochromatic
#0D0E25 #1E2052 #2E317F #3E42AC #6165C6
Accessibility & contrast
On white
11.28
#2E317F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#2E317F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E317F
11.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E317F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E317F | 1.00 | 11.28 | 1.86 | 11.28 |
| #FFFFFF | 11.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2e317f; /* rgb */ color: rgb(46, 49, 127); /* oklch */ color: oklch(36.0% 0.129 276.1);
Tailwind
colors: {
custom: {
50: '#7069a5',
500: '#2e317f',
950: '#000000',
},
}SCSS
$custom: #2e317f; $custom-light: #7069a5; $custom-dark: #000000;
JSON
{
"hex": "#2e317f",
"rgb": {
"r": 46,
"g": 49,
"b": 127
},
"hsl": {
"h": 237.778,
"s": 46.821,
"l": 33.922
},
"oklch": {
"l": 0.36039,
"c": 0.1292,
"h": 276.1
},
"luminance": 0.0431
}Semantic roles & 50–950 ramp
primary
#2E317F
secondary
#ADAA5C
accent
#D251D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F