#2E317A#2E317A
#2E317A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.122 H 276.5°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2E317A |
|---|---|
| RGB | rgb(46, 49, 122) |
| HSL | hsl(238, 45%, 33%) |
| HSV | hsv(238, 62%, 48%) |
| CMYK | cmyk(62.3%, 59.8%, 0%, 52.2%) |
| CIE-LAB | lab(24.26, 22.57, -42.17) |
| CIE-LCH | lch(24.26, 47.83, 298.16°) |
| OKLab | oklab(35.61% 0.0138 -0.1211) |
| OKLCH | oklch(35.61% 0.122 276.5) |
| XYZ | xyz(5.7367, 4.1822, 18.9135) |
| Luminance | 0.0418 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.39
Blueberry
#464196
ΔE00 6.41
Midnight Blue
#191970
ΔE00 6.81
Marine
#042E60
ΔE00 7.44
Sapphire (survey)
#2138AB
ΔE00 7.66
Royal
#0C1793
ΔE00 8.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E317A #7A772E
analogous
#2E577A #2E317A #512E7A
triadic
#2E317A #7A2E31 #317A2E
tetradic
#2E317A #7A2E57 #7A772E #2E7A51
square
#2E317A #7A2E57 #7A772E #2E7A51
split-complementary
#2E317A #7A512E #577A2E
monochromatic
#0C0D21 #1D1F4E #2E317A #3F43A6 #6063C3
Accessibility & contrast
On white
11.43
#2E317A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#2E317A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E317A
11.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E317A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E317A | 1.00 | 11.43 | 1.84 | 11.43 |
| #FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2e317a; /* rgb */ color: rgb(46, 49, 122); /* oklch */ color: oklch(35.6% 0.122 276.5);
Tailwind
colors: {
custom: {
50: '#6f69a1',
500: '#2e317a',
950: '#000000',
},
}SCSS
$custom: #2e317a; $custom-light: #6f69a1; $custom-dark: #000000;
JSON
{
"hex": "#2e317a",
"rgb": {
"r": 46,
"g": 49,
"b": 122
},
"hsl": {
"h": 237.632,
"s": 45.238,
"l": 32.941
},
"oklch": {
"l": 0.35613,
"c": 0.12189,
"h": 276.5
},
"luminance": 0.04183
}Semantic roles & 50–950 ramp
primary
#2E317A
secondary
#AAA65A
accent
#D053D5
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F