#312283#312283
#312283 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.153 H 281.6°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).
Color values
| HEX | #312283 |
|---|---|
| RGB | rgb(49, 34, 131) |
| HSL | hsl(249, 59%, 32%) |
| HSV | hsv(249, 74%, 51%) |
| CMYK | cmyk(62.6%, 74%, 0%, 48.6%) |
| CIE-LAB | lab(21.71, 35.82, -52.02) |
| CIE-LCH | lch(21.71, 63.16, 304.55°) |
| OKLab | oklab(34.07% 0.0308 -0.15) |
| OKLCH | oklch(34.07% 0.153 281.6) |
| XYZ | xyz(5.9341, 3.4353, 21.8187) |
| Luminance | 0.0344 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.28
Royal
#0C1793
ΔE00 4.48
Indigo (survey)
#380282
ΔE00 5.54
Darkblue
#00008B
ΔE00 6.84
Cobalt Blue
#030AA7
ΔE00 6.84
Indigo
#4B0082
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312283 #748322
analogous
#224483 #312283 #612283
triadic
#312283 #833122 #228331
tetradic
#312283 #832244 #748322 #228361
square
#312283 #832244 #748322 #228361
split-complementary
#312283 #836122 #448322
monochromatic
#0D0922 #1F1552 #312283 #432FB4 #634ED1
Accessibility & contrast
On white
12.45
#312283 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#312283 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312283
12.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312283 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312283 | 1.00 | 12.45 | 1.69 | 12.45 |
| #FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #312283; /* rgb */ color: rgb(49, 34, 131); /* oklch */ color: oklch(34.1% 0.153 281.6);
Tailwind
colors: {
custom: {
50: '#745fa8',
500: '#312283',
950: '#000000',
},
}SCSS
$custom: #312283; $custom-light: #745fa8; $custom-dark: #000000;
JSON
{
"hex": "#312283",
"rgb": {
"r": 49,
"g": 34,
"b": 131
},
"hsl": {
"h": 249.278,
"s": 58.788,
"l": 32.353
},
"oklch": {
"l": 0.34065,
"c": 0.15309,
"h": 281.6
},
"luminance": 0.03436
}Semantic roles & 50–950 ramp
primary
#312283
secondary
#A4B44C
accent
#E246CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F