#31207C#31207C
#31207C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.146 H 283.4°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).
Color values
| HEX | #31207C |
|---|---|
| RGB | rgb(49, 32, 124) |
| HSL | hsl(251, 59%, 31%) |
| HSV | hsv(251, 74%, 49%) |
| CMYK | cmyk(60.5%, 74.2%, 0%, 51.4%) |
| CIE-LAB | lab(20.60, 34.70, -49.41) |
| CIE-LCH | lch(20.60, 60.38, 305.08°) |
| OKLab | oklab(33.07% 0.0339 -0.1423) |
| OKLCH | oklch(33.07% 0.146 283.4) |
| XYZ | xyz(5.4201, 3.1409, 19.3855) |
| Luminance | 0.0314 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.63
Royal
#0C1793
ΔE00 5.10
Indigo (survey)
#380282
ΔE00 5.29
Dark Royal Blue
#02066F
ΔE00 6.63
Indigo
#4B0082
ΔE00 6.65
Deep Blue
#040273
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31207C #6B7C20
analogous
#203D7C #31207C #5F207C
triadic
#31207C #7C3120 #207C31
tetradic
#31207C #7C203D #6B7C20 #207C5F
square
#31207C #7C203D #6B7C20 #207C5F
split-complementary
#31207C #7C5F20 #3D7C20
monochromatic
#0B071B #1E134B #31207C #442DAD #6047CF
Accessibility & contrast
On white
12.90
#31207C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#31207C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31207C
12.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31207C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31207C | 1.00 | 12.90 | 1.63 | 12.90 |
| #FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#05394C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #31207c; /* rgb */ color: rgb(49, 32, 124); /* oklch */ color: oklch(33.1% 0.146 283.4);
Tailwind
colors: {
custom: {
50: '#735da3',
500: '#31207c',
950: '#000000',
},
}SCSS
$custom: #31207c; $custom-light: #735da3; $custom-dark: #000000;
JSON
{
"hex": "#31207c",
"rgb": {
"r": 49,
"g": 32,
"b": 124
},
"hsl": {
"h": 251.087,
"s": 58.974,
"l": 30.588
},
"oklch": {
"l": 0.33065,
"c": 0.1463,
"h": 283.4
},
"luminance": 0.03141
}Semantic roles & 50–950 ramp
primary
#31207C
secondary
#9CAF49
accent
#E246C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F