#31209F#31209F
#31209F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.190 H 277.6°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).
Color values
| HEX | #31209F |
|---|---|
| RGB | rgb(49, 32, 159) |
| HSL | hsl(248, 66%, 37%) |
| HSV | hsv(248, 80%, 62%) |
| CMYK | cmyk(69.2%, 79.9%, 0%, 37.6%) |
| CIE-LAB | lab(24.29, 45.84, -65.13) |
| CIE-LCH | lch(24.29, 79.64, 305.14°) |
| OKLab | oklab(36.76% 0.025 -0.1882) |
| OKLCH | oklch(36.76% 0.19 277.6) |
| XYZ | xyz(8.0391, 4.1885, 33.1790) |
| Luminance | 0.0419 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.93
Royal
#0C1793
ΔE00 3.77
Cobalt Blue
#030AA7
ΔE00 4.17
Ultramarine
#2000B1
ΔE00 4.44
Royal Blue (survey)
#0504AA
ΔE00 4.56
True Blue
#010FCC
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31209F #8E9F20
analogous
#204F9F #31209F #70209F
triadic
#31209F #9F3120 #209F31
tetradic
#31209F #9F204F #8E9F20 #209F70
square
#31209F #9F204F #8E9F20 #209F70
split-complementary
#31209F #9F7020 #4F9F20
monochromatic
#120B39 #21166C #31209F #412AD2 #6D5BDE
Accessibility & contrast
On white
11.43
#31209F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#31209F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31209F
11.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31209F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31209F | 1.00 | 11.43 | 1.84 | 11.43 |
| #FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #31209f; /* rgb */ color: rgb(49, 32, 159); /* oklch */ color: oklch(36.8% 0.190 277.6);
Tailwind
colors: {
custom: {
50: '#7a5fbd',
500: '#31209f',
950: '#000000',
},
}SCSS
$custom: #31209f; $custom-light: #7a5fbd; $custom-dark: #000000;
JSON
{
"hex": "#31209f",
"rgb": {
"r": 49,
"g": 32,
"b": 159
},
"hsl": {
"h": 248.031,
"s": 66.492,
"l": 37.451
},
"oklch": {
"l": 0.36761,
"c": 0.18984,
"h": 277.6
},
"luminance": 0.04189
}Semantic roles & 50–950 ramp
primary
#31209F
secondary
#B4C259
accent
#E93ED3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981