#312C8E#312C8E
#312C8E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.156 H 277.7°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).
Color values
| HEX | #312C8E |
|---|---|
| RGB | rgb(49, 44, 142) |
| HSL | hsl(243, 53%, 36%) |
| HSV | hsv(243, 69%, 56%) |
| CMYK | cmyk(65.5%, 69%, 0%, 44.3%) |
| CIE-LAB | lab(24.97, 33.45, -53.54) |
| CIE-LCH | lch(24.97, 63.13, 302.00°) |
| OKLab | oklab(36.73% 0.0209 -0.1544) |
| OKLCH | oklch(36.73% 0.156 277.7) |
| XYZ | xyz(7.0482, 4.4068, 26.0651) |
| Luminance | 0.0441 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.52
Royal
#0C1793
ΔE00 5.53
Darkslateblue
#483D8B
ΔE00 5.83
Blueberry
#464196
ΔE00 6.26
Midnight Blue
#191970
ΔE00 6.48
Indigo Blue
#3A18B1
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312C8E #898E2C
analogous
#2C588E #312C8E #622C8E
triadic
#312C8E #8E312C #2C8E31
tetradic
#312C8E #8E2C58 #898E2C #2C8E62
square
#312C8E #8E2C58 #898E2C #2C8E62
split-complementary
#312C8E #8E622C #588E2C
monochromatic
#110F31 #211E5F #312C8E #413ABD #6B65CF
Accessibility & contrast
On white
11.16
#312C8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#312C8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312C8E
11.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312C8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312C8E | 1.00 | 11.16 | 1.88 | 11.16 |
| #FFFFFF | 11.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #312c8e; /* rgb */ color: rgb(49, 44, 142); /* oklch */ color: oklch(36.7% 0.156 277.7);
Tailwind
colors: {
custom: {
50: '#7566b0',
500: '#312c8e',
950: '#000000',
},
}SCSS
$custom: #312c8e; $custom-light: #7566b0; $custom-dark: #000000;
JSON
{
"hex": "#312c8e",
"rgb": {
"r": 49,
"g": 44,
"b": 142
},
"hsl": {
"h": 243.061,
"s": 52.688,
"l": 36.471
},
"oklch": {
"l": 0.36727,
"c": 0.15584,
"h": 277.7
},
"luminance": 0.04407
}Semantic roles & 50–950 ramp
primary
#312C8E
secondary
#B1B660
accent
#DC4CD5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80