#31239E#31239E
#31239E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.186 H 277.3°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).
Color values
| HEX | #31239E |
|---|---|
| RGB | rgb(49, 35, 158) |
| HSL | hsl(247, 64%, 38%) |
| HSV | hsv(247, 78%, 62%) |
| CMYK | cmyk(69%, 77.8%, 0%, 38%) |
| CIE-LAB | lab(24.71, 43.98, -63.81) |
| CIE-LCH | lch(24.71, 77.50, 304.58°) |
| OKLab | oklab(37.03% 0.0238 -0.1844) |
| OKLCH | oklch(37.03% 0.186 277.3) |
| XYZ | xyz(8.0372, 4.3229, 32.7520) |
| Luminance | 0.0432 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.35
Royal
#0C1793
ΔE00 4.00
Cobalt Blue
#030AA7
ΔE00 4.69
Ultramarine
#2000B1
ΔE00 5.04
Royal Blue (survey)
#0504AA
ΔE00 5.12
True Blue
#010FCC
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31239E #909E23
analogous
#23539E #31239E #6E239E
triadic
#31239E #9E3123 #239E31
tetradic
#31239E #9E2353 #909E23 #239E6E
square
#31239E #9E2353 #909E23 #239E6E
split-complementary
#31239E #9E6E23 #539E23
monochromatic
#120D3A #21186C #31239E #412ED0 #6E60DC
Accessibility & contrast
On white
11.26
#31239E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#31239E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31239E
11.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31239E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31239E | 1.00 | 11.26 | 1.86 | 11.26 |
| #FFFFFF | 11.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #31239e; /* rgb */ color: rgb(49, 35, 158); /* oklch */ color: oklch(37.0% 0.186 277.3);
Tailwind
colors: {
custom: {
50: '#7a61bc',
500: '#31239e',
950: '#000000',
},
}SCSS
$custom: #31239e; $custom-light: #7a61bc; $custom-dark: #000000;
JSON
{
"hex": "#31239e",
"rgb": {
"r": 49,
"g": 35,
"b": 158
},
"hsl": {
"h": 246.829,
"s": 63.731,
"l": 37.843
},
"oklch": {
"l": 0.37027,
"c": 0.18591,
"h": 277.3
},
"luminance": 0.04324
}Semantic roles & 50–950 ramp
primary
#31239E
secondary
#B5C15C
accent
#E741D4
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981