#312D8F#312D8F
#312D8F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.156 H 277.4°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).
Color values
| HEX | #312D8F |
|---|---|
| RGB | rgb(49, 45, 143) |
| HSL | hsl(242, 52%, 37%) |
| HSV | hsv(242, 69%, 56%) |
| CMYK | cmyk(65.7%, 68.5%, 0%, 43.9%) |
| CIE-LAB | lab(25.30, 33.17, -53.63) |
| CIE-LCH | lch(25.30, 63.06, 301.74°) |
| OKLab | oklab(36.99% 0.02 -0.1547) |
| OKLCH | oklch(36.99% 0.156 277.4) |
| XYZ | xyz(7.1613, 4.5123, 26.4749) |
| Luminance | 0.0451 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.25
Darkslateblue
#483D8B
ΔE00 5.68
Royal
#0C1793
ΔE00 5.73
Blueberry
#464196
ΔE00 6.02
Midnight Blue
#191970
ΔE00 6.73
Indigo Blue
#3A18B1
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312D8F #8B8F2D
analogous
#2D5A8F #312D8F #622D8F
triadic
#312D8F #8F312D #2D8F31
tetradic
#312D8F #8F2D5A #8B8F2D #2D8F62
square
#312D8F #8F2D5A #8B8F2D #2D8F62
split-complementary
#312D8F #8F622D #5A8F2D
monochromatic
#111032 #211E60 #312D8F #413CBE #6B67CF
Accessibility & contrast
On white
11.04
#312D8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#312D8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312D8F
11.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312D8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312D8F | 1.00 | 11.04 | 1.90 | 11.04 |
| #FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #312d8f; /* rgb */ color: rgb(49, 45, 143); /* oklch */ color: oklch(37.0% 0.156 277.4);
Tailwind
colors: {
custom: {
50: '#7566b1',
500: '#312d8f',
950: '#000000',
},
}SCSS
$custom: #312d8f; $custom-light: #7566b1; $custom-dark: #000000;
JSON
{
"hex": "#312d8f",
"rgb": {
"r": 49,
"g": 45,
"b": 143
},
"hsl": {
"h": 242.449,
"s": 52.128,
"l": 36.863
},
"oklch": {
"l": 0.36991,
"c": 0.15598,
"h": 277.4
},
"luminance": 0.04513
}Semantic roles & 50–950 ramp
primary
#312D8F
secondary
#B2B662
accent
#DC4CD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80