#312F7D#312F7D
#312F7D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.128 H 278.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).
Color values
| HEX | #312F7D |
|---|---|
| RGB | rgb(49, 47, 125) |
| HSL | hsl(242, 45%, 34%) |
| HSV | hsv(242, 62%, 49%) |
| CMYK | cmyk(60.8%, 62.4%, 0%, 51%) |
| CIE-LAB | lab(24.21, 25.57, -44.14) |
| CIE-LCH | lch(24.21, 51.01, 300.08°) |
| OKLab | oklab(35.71% 0.0197 -0.1268) |
| OKLCH | oklch(35.71% 0.128 278.8) |
| XYZ | xyz(5.9836, 4.1662, 19.8869) |
| Luminance | 0.0417 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.14
Midnight Blue
#191970
ΔE00 6.24
Blueberry
#464196
ΔE00 6.29
Sapphire (survey)
#2138AB
ΔE00 7.44
Royal
#0C1793
ΔE00 7.74
Marine
#042E60
ΔE00 8.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312F7D #7B7D2F
analogous
#2F547D #312F7D #582F7D
triadic
#312F7D #7D312F #2F7D31
tetradic
#312F7D #7D2F54 #7B7D2F #2F7D58
square
#312F7D #7D2F54 #7B7D2F #2F7D58
split-complementary
#312F7D #7D582F #547D2F
monochromatic
#0E0E24 #201E51 #312F7D #4240A9 #6562C4
Accessibility & contrast
On white
11.45
#312F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#312F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312F7D
11.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312F7D | 1.00 | 11.45 | 1.83 | 11.45 |
| #FFFFFF | 11.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #312f7d; /* rgb */ color: rgb(49, 47, 125); /* oklch */ color: oklch(35.7% 0.128 278.8);
Tailwind
colors: {
custom: {
50: '#7167a3',
500: '#312f7d',
950: '#000000',
},
}SCSS
$custom: #312f7d; $custom-light: #7167a3; $custom-dark: #000000;
JSON
{
"hex": "#312f7d",
"rgb": {
"r": 49,
"g": 47,
"b": 125
},
"hsl": {
"h": 241.538,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.35711,
"c": 0.12835,
"h": 278.8
},
"luminance": 0.04167
}Semantic roles & 50–950 ramp
primary
#312F7D
secondary
#A9AB5D
accent
#D553D2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F