#31219E#31219E
#31219E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.188 H 277.6°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).
Color values
| HEX | #31219E |
|---|---|
| RGB | rgb(49, 33, 158) |
| HSL | hsl(248, 65%, 37%) |
| HSV | hsv(248, 79%, 62%) |
| CMYK | cmyk(69%, 79.1%, 0%, 38%) |
| CIE-LAB | lab(24.35, 45.02, -64.41) |
| CIE-LCH | lch(24.35, 78.59, 304.95°) |
| OKLab | oklab(36.77% 0.0248 -0.1861) |
| OKLCH | oklch(36.77% 0.188 277.6) |
| XYZ | xyz(7.9800, 4.2086, 32.7329) |
| Luminance | 0.0421 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.13
Royal
#0C1793
ΔE00 3.79
Cobalt Blue
#030AA7
ΔE00 4.36
Ultramarine
#2000B1
ΔE00 4.68
Royal Blue (survey)
#0504AA
ΔE00 4.76
True Blue
#010FCC
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31219E #8E9E21
analogous
#21509E #31219E #70219E
triadic
#31219E #9E3121 #219E31
tetradic
#31219E #9E2150 #8E9E21 #219E70
square
#31219E #9E2150 #8E9E21 #219E70
split-complementary
#31219E #9E7021 #509E21
monochromatic
#120C39 #21166B #31219E #412CD1 #6D5CDD
Accessibility & contrast
On white
11.40
#31219E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#31219E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31219E
11.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31219E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31219E | 1.00 | 11.40 | 1.84 | 11.40 |
| #FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #31219e; /* rgb */ color: rgb(49, 33, 158); /* oklch */ color: oklch(36.8% 0.188 277.6);
Tailwind
colors: {
custom: {
50: '#7a60bc',
500: '#31219e',
950: '#000000',
},
}SCSS
$custom: #31219e; $custom-light: #7a60bc; $custom-dark: #000000;
JSON
{
"hex": "#31219e",
"rgb": {
"r": 49,
"g": 33,
"b": 158
},
"hsl": {
"h": 247.68,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.36773,
"c": 0.18775,
"h": 277.6
},
"luminance": 0.04209
}Semantic roles & 50–950 ramp
primary
#31219E
secondary
#B4C159
accent
#E83FD3
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981