#312182#312182
#312182 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.153 H 282.0°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).
Color values
| HEX | #312182 |
|---|---|
| RGB | rgb(49, 33, 130) |
| HSL | hsl(250, 60%, 32%) |
| HSV | hsv(250, 75%, 51%) |
| CMYK | cmyk(62.3%, 74.6%, 0%, 49%) |
| CIE-LAB | lab(21.40, 36.07, -51.89) |
| CIE-LCH | lch(21.40, 63.20, 304.80°) |
| OKLab | oklab(33.82% 0.0318 -0.1496) |
| OKLCH | oklch(33.82% 0.153 282) |
| XYZ | xyz(5.8385, 3.3520, 21.4541) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.14
Royal
#0C1793
ΔE00 4.47
Indigo (survey)
#380282
ΔE00 5.31
Darkblue
#00008B
ΔE00 6.68
Indigo
#4B0082
ΔE00 6.71
Cobalt Blue
#030AA7
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312182 #728221
analogous
#214282 #312182 #622182
triadic
#312182 #823121 #218231
tetradic
#312182 #822142 #728221 #218262
square
#312182 #822142 #728221 #218262
split-complementary
#312182 #826221 #428221
monochromatic
#0C0820 #1F1551 #312182 #432DB3 #624CD2
Accessibility & contrast
On white
12.57
#312182 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#312182 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312182
12.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312182 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312182 | 1.00 | 12.57 | 1.67 | 12.57 |
| #FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #312182; /* rgb */ color: rgb(49, 33, 130); /* oklch */ color: oklch(33.8% 0.153 282.0);
Tailwind
colors: {
custom: {
50: '#745ea7',
500: '#312182',
950: '#000000',
},
}SCSS
$custom: #312182; $custom-light: #745ea7; $custom-dark: #000000;
JSON
{
"hex": "#312182",
"rgb": {
"r": 49,
"g": 33,
"b": 130
},
"hsl": {
"h": 249.897,
"s": 59.509,
"l": 31.961
},
"oklch": {
"l": 0.33816,
"c": 0.15293,
"h": 282
},
"luminance": 0.03352
}Semantic roles & 50–950 ramp
primary
#312182
secondary
#A3B44A
accent
#E345C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F