#312E7D#312E7D
#312E7D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.130 H 279.2°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #312E7D |
|---|---|
| RGB | rgb(49, 46, 125) |
| HSL | hsl(242, 46%, 34%) |
| HSV | hsv(242, 63%, 49%) |
| CMYK | cmyk(60.8%, 63.2%, 0%, 51%) |
| CIE-LAB | lab(23.96, 26.23, -44.56) |
| CIE-LCH | lch(23.96, 51.71, 300.49°) |
| OKLab | oklab(35.52% 0.0207 -0.1281) |
| OKLCH | oklch(35.52% 0.13 279.2) |
| XYZ | xyz(5.9441, 4.0872, 19.8737) |
| Luminance | 0.0409 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.30
Midnight Blue
#191970
ΔE00 5.98
Blueberry
#464196
ΔE00 6.47
Royal
#0C1793
ΔE00 7.48
Sapphire (survey)
#2138AB
ΔE00 7.52
Marine
#042E60
ΔE00 8.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312E7D #7A7D2E
analogous
#2E527D #312E7D #582E7D
triadic
#312E7D #7D312E #2E7D31
tetradic
#312E7D #7D2E52 #7A7D2E #2E7D58
square
#312E7D #7D2E52 #7A7D2E #2E7D58
split-complementary
#312E7D #7D582E #527D2E
monochromatic
#0E0D24 #1F1E50 #312E7D #433EAA #6461C5
Accessibility & contrast
On white
11.55
#312E7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#312E7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312E7D
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312E7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312E7D | 1.00 | 11.55 | 1.82 | 11.55 |
| #FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #312e7d; /* rgb */ color: rgb(49, 46, 125); /* oklch */ color: oklch(35.5% 0.130 279.2);
Tailwind
colors: {
custom: {
50: '#7267a3',
500: '#312e7d',
950: '#000000',
},
}SCSS
$custom: #312e7d; $custom-light: #7267a3; $custom-dark: #000000;
JSON
{
"hex": "#312e7d",
"rgb": {
"r": 49,
"g": 46,
"b": 125
},
"hsl": {
"h": 242.278,
"s": 46.199,
"l": 33.529
},
"oklch": {
"l": 0.35523,
"c": 0.12972,
"h": 279.2
},
"luminance": 0.04088
}Semantic roles & 50–950 ramp
primary
#312E7D
secondary
#A8AB5B
accent
#D652D1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F