#31229F#31229F
#31229F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.188 H 277.3°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).
Color values
| HEX | #31229F |
|---|---|
| RGB | rgb(49, 34, 159) |
| HSL | hsl(247, 65%, 38%) |
| HSV | hsv(247, 79%, 62%) |
| CMYK | cmyk(69.2%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(24.64, 44.82, -64.55) |
| CIE-LCH | lch(24.64, 78.58, 304.78°) |
| OKLab | oklab(37.01% 0.024 -0.1865) |
| OKLCH | oklch(37.01% 0.188 277.3) |
| XYZ | xyz(8.0946, 4.2995, 33.1975) |
| Luminance | 0.0430 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.12
Royal
#0C1793
ΔE00 3.95
Cobalt Blue
#030AA7
ΔE00 4.50
Ultramarine
#2000B1
ΔE00 4.79
Royal Blue (survey)
#0504AA
ΔE00 4.90
True Blue
#010FCC
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31229F #909F22
analogous
#22519F #31229F #6F229F
triadic
#31229F #9F3122 #229F31
tetradic
#31229F #9F2251 #909F22 #229F6F
square
#31229F #9F2251 #909F22 #229F6F
split-complementary
#31229F #9F6F22 #519F22
monochromatic
#120C3A #21176D #31229F #412DD1 #6E5FDD
Accessibility & contrast
On white
11.29
#31229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#31229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31229F
11.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31229F | 1.00 | 11.29 | 1.86 | 11.29 |
| #FFFFFF | 11.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #31229f; /* rgb */ color: rgb(49, 34, 159); /* oklch */ color: oklch(37.0% 0.188 277.3);
Tailwind
colors: {
custom: {
50: '#7a60bd',
500: '#31229f',
950: '#000000',
},
}SCSS
$custom: #31229f; $custom-light: #7a60bd; $custom-dark: #000000;
JSON
{
"hex": "#31229f",
"rgb": {
"r": 49,
"g": 34,
"b": 159
},
"hsl": {
"h": 247.2,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.37007,
"c": 0.18805,
"h": 277.3
},
"luminance": 0.043
}Semantic roles & 50–950 ramp
primary
#31229F
secondary
#B5C15B
accent
#E840D4
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981