#312E7E#312E7E
#312E7E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.131 H 279.1°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).
Color values
| HEX | #312E7E |
|---|---|
| RGB | rgb(49, 46, 126) |
| HSL | hsl(242, 47%, 34%) |
| HSV | hsv(242, 63%, 49%) |
| CMYK | cmyk(61.1%, 63.5%, 0%, 50.6%) |
| CIE-LAB | lab(24.04, 26.59, -45.05) |
| CIE-LCH | lch(24.04, 52.31, 300.55°) |
| OKLab | oklab(35.61% 0.0207 -0.1295) |
| OKLCH | oklch(35.61% 0.131 279.1) |
| XYZ | xyz(6.0083, 4.1129, 20.2119) |
| Luminance | 0.0411 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.27
Midnight Blue
#191970
ΔE00 5.98
Blueberry
#464196
ΔE00 6.40
Royal
#0C1793
ΔE00 7.36
Sapphire (survey)
#2138AB
ΔE00 7.37
Marine
#042E60
ΔE00 8.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312E7E #7B7E2E
analogous
#2E537E #312E7E #592E7E
triadic
#312E7E #7E312E #2E7E31
tetradic
#312E7E #7E2E53 #7B7E2E #2E7E59
square
#312E7E #7E2E53 #7B7E2E #2E7E59
split-complementary
#312E7E #7E592E #537E2E
monochromatic
#0E0D24 #201E51 #312E7E #423EAB #6561C5
Accessibility & contrast
On white
11.52
#312E7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#312E7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312E7E
11.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312E7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312E7E | 1.00 | 11.52 | 1.82 | 11.52 |
| #FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #312e7e; /* rgb */ color: rgb(49, 46, 126); /* oklch */ color: oklch(35.6% 0.131 279.1);
Tailwind
colors: {
custom: {
50: '#7267a4',
500: '#312e7e',
950: '#000000',
},
}SCSS
$custom: #312e7e; $custom-light: #7267a4; $custom-dark: #000000;
JSON
{
"hex": "#312e7e",
"rgb": {
"r": 49,
"g": 46,
"b": 126
},
"hsl": {
"h": 242.25,
"s": 46.512,
"l": 33.725
},
"oklch": {
"l": 0.3561,
"c": 0.13116,
"h": 279.1
},
"luminance": 0.04113
}Semantic roles & 50–950 ramp
primary
#312E7E
secondary
#A9AC5C
accent
#D652D1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F