#2E317B#2E317B
#2E317B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.123 H 276.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2E317B |
|---|---|
| RGB | rgb(46, 49, 123) |
| HSL | hsl(238, 46%, 33%) |
| HSV | hsv(238, 63%, 48%) |
| CMYK | cmyk(62.6%, 60.2%, 0%, 51.8%) |
| CIE-LAB | lab(24.34, 22.94, -42.67) |
| CIE-LCH | lch(24.34, 48.45, 298.26°) |
| OKLab | oklab(35.7% 0.0138 -0.1226) |
| OKLCH | oklch(35.7% 0.123 276.4) |
| XYZ | xyz(5.7990, 4.2071, 19.2415) |
| Luminance | 0.0421 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.33
Blueberry
#464196
ΔE00 6.32
Midnight Blue
#191970
ΔE00 6.79
Sapphire (survey)
#2138AB
ΔE00 7.50
Marine
#042E60
ΔE00 7.53
Royal
#0C1793
ΔE00 8.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E317B #7B782E
analogous
#2E577B #2E317B #512E7B
triadic
#2E317B #7B2E31 #317B2E
tetradic
#2E317B #7B2E57 #7B782E #2E7B51
square
#2E317B #7B2E57 #7B782E #2E7B51
split-complementary
#2E317B #7B512E #577B2E
monochromatic
#0D0E22 #1D1F4E #2E317B #3F43A8 #6064C3
Accessibility & contrast
On white
11.40
#2E317B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#2E317B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E317B
11.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E317B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E317B | 1.00 | 11.40 | 1.84 | 11.40 |
| #FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2e317b; /* rgb */ color: rgb(46, 49, 123); /* oklch */ color: oklch(35.7% 0.123 276.4);
Tailwind
colors: {
custom: {
50: '#6f69a2',
500: '#2e317b',
950: '#000000',
},
}SCSS
$custom: #2e317b; $custom-light: #6f69a2; $custom-dark: #000000;
JSON
{
"hex": "#2e317b",
"rgb": {
"r": 46,
"g": 49,
"b": 123
},
"hsl": {
"h": 237.662,
"s": 45.562,
"l": 33.137
},
"oklch": {
"l": 0.35697,
"c": 0.12336,
"h": 276.4
},
"luminance": 0.04208
}Semantic roles & 50–950 ramp
primary
#2E317B
secondary
#AAA75B
accent
#D053D5
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F