#31239F#31239F
#31239F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.187 H 277.2°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).
Color values
| HEX | #31239F |
|---|---|
| RGB | rgb(49, 35, 159) |
| HSL | hsl(247, 64%, 38%) |
| HSV | hsv(247, 78%, 62%) |
| CMYK | cmyk(69.2%, 78%, 0%, 37.6%) |
| CIE-LAB | lab(24.82, 44.30, -64.24) |
| CIE-LCH | lch(24.82, 78.04, 304.59°) |
| OKLab | oklab(37.14% 0.0235 -0.1856) |
| OKLCH | oklch(37.14% 0.187 277.2) |
| XYZ | xyz(8.1236, 4.3575, 33.2071) |
| Luminance | 0.0436 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.24
Royal
#0C1793
ΔE00 4.06
Cobalt Blue
#030AA7
ΔE00 4.67
Ultramarine
#2000B1
ΔE00 4.98
Royal Blue (survey)
#0504AA
ΔE00 5.08
True Blue
#010FCC
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31239F #919F23
analogous
#23539F #31239F #6F239F
triadic
#31239F #9F3123 #239F31
tetradic
#31239F #9F2353 #919F23 #239F6F
square
#31239F #9F2353 #919F23 #239F6F
split-complementary
#31239F #9F6F23 #539F23
monochromatic
#120D3B #22186D #31239F #412ED1 #6E60DC
Accessibility & contrast
On white
11.22
#31239F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#31239F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31239F
11.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31239F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31239F | 1.00 | 11.22 | 1.87 | 11.22 |
| #FFFFFF | 11.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #31239f; /* rgb */ color: rgb(49, 35, 159); /* oklch */ color: oklch(37.1% 0.187 277.2);
Tailwind
colors: {
custom: {
50: '#7a61bd',
500: '#31239f',
950: '#000000',
},
}SCSS
$custom: #31239f; $custom-light: #7a61bd; $custom-dark: #000000;
JSON
{
"hex": "#31239f",
"rgb": {
"r": 49,
"g": 35,
"b": 159
},
"hsl": {
"h": 246.774,
"s": 63.918,
"l": 38.039
},
"oklch": {
"l": 0.37135,
"c": 0.18712,
"h": 277.2
},
"luminance": 0.04358
}Semantic roles & 50–950 ramp
primary
#31239F
secondary
#B6C15D
accent
#E741D4
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981