#312282#312282
#312282 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.152 H 281.8°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).
Color values
| HEX | #312282 |
|---|---|
| RGB | rgb(49, 34, 130) |
| HSL | hsl(249, 59%, 32%) |
| HSV | hsv(249, 74%, 51%) |
| CMYK | cmyk(62.3%, 73.8%, 0%, 49%) |
| CIE-LAB | lab(21.61, 35.49, -51.55) |
| CIE-LCH | lch(21.61, 62.59, 304.54°) |
| OKLab | oklab(33.96% 0.031 -0.1486) |
| OKLCH | oklch(33.96% 0.152 281.8) |
| XYZ | xyz(5.8667, 3.4083, 21.4635) |
| Luminance | 0.0341 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.19
Royal
#0C1793
ΔE00 4.59
Indigo (survey)
#380282
ΔE00 5.56
Darkblue
#00008B
ΔE00 6.89
Indigo
#4B0082
ΔE00 6.92
Cobalt Blue
#030AA7
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312282 #738222
analogous
#224382 #312282 #612282
triadic
#312282 #823122 #228231
tetradic
#312282 #822243 #738222 #228261
square
#312282 #822243 #738222 #228261
split-complementary
#312282 #826122 #438222
monochromatic
#0C0921 #1F1551 #312282 #432FB3 #624ED1
Accessibility & contrast
On white
12.49
#312282 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#312282 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312282
12.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312282 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312282 | 1.00 | 12.49 | 1.68 | 12.49 |
| #FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #312282; /* rgb */ color: rgb(49, 34, 130); /* oklch */ color: oklch(34.0% 0.152 281.8);
Tailwind
colors: {
custom: {
50: '#745fa7',
500: '#312282',
950: '#000000',
},
}SCSS
$custom: #312282; $custom-light: #745fa7; $custom-dark: #000000;
JSON
{
"hex": "#312282",
"rgb": {
"r": 49,
"g": 34,
"b": 130
},
"hsl": {
"h": 249.375,
"s": 58.537,
"l": 32.157
},
"oklch": {
"l": 0.33964,
"c": 0.15179,
"h": 281.8
},
"luminance": 0.03409
}Semantic roles & 50–950 ramp
primary
#312282
secondary
#A4B44C
accent
#E246C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F