#31229C#31229C
#31229C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.184 H 277.7°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).
Color values
| HEX | #31229C |
|---|---|
| RGB | rgb(49, 34, 156) |
| HSL | hsl(247, 64%, 37%) |
| HSV | hsv(247, 78%, 61%) |
| CMYK | cmyk(68.6%, 78.2%, 0%, 38.8%) |
| CIE-LAB | lab(24.31, 43.87, -63.25) |
| CIE-LCH | lch(24.31, 76.98, 304.75°) |
| OKLab | oklab(36.68% 0.0248 -0.1827) |
| OKLCH | oklch(36.68% 0.184 277.7) |
| XYZ | xyz(7.8375, 4.1966, 31.8430) |
| Luminance | 0.0420 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.47
Royal
#0C1793
ΔE00 3.78
Cobalt Blue
#030AA7
ΔE00 4.59
Ultramarine
#2000B1
ΔE00 5.00
Royal Blue (survey)
#0504AA
ΔE00 5.02
True Blue
#010FCC
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31229C #8D9C22
analogous
#22509C #31229C #6E229C
triadic
#31229C #9C3122 #229C31
tetradic
#31229C #9C2250 #8D9C22 #229C6E
square
#31229C #9C2250 #8D9C22 #229C6E
split-complementary
#31229C #9C6E22 #509C22
monochromatic
#110C38 #21176A #31229C #412DCE #6C5DDC
Accessibility & contrast
On white
11.42
#31229C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#31229C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31229C
11.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31229C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31229C | 1.00 | 11.42 | 1.84 | 11.42 |
| #FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #31229c; /* rgb */ color: rgb(49, 34, 156); /* oklch */ color: oklch(36.7% 0.184 277.7);
Tailwind
colors: {
custom: {
50: '#7960ba',
500: '#31229c',
950: '#000000',
},
}SCSS
$custom: #31229c; $custom-light: #7960ba; $custom-dark: #000000;
JSON
{
"hex": "#31229c",
"rgb": {
"r": 49,
"g": 34,
"b": 156
},
"hsl": {
"h": 247.377,
"s": 64.211,
"l": 37.255
},
"oklch": {
"l": 0.36682,
"c": 0.18442,
"h": 277.7
},
"luminance": 0.04197
}Semantic roles & 50–950 ramp
primary
#31229C
secondary
#B4C05A
accent
#E741D3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981