#31229E#31229E
#31229E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.187 H 277.5°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).
Color values
| HEX | #31229E |
|---|---|
| RGB | rgb(49, 34, 158) |
| HSL | hsl(247, 65%, 38%) |
| HSV | hsv(247, 78%, 62%) |
| CMYK | cmyk(69%, 78.5%, 0%, 38%) |
| CIE-LAB | lab(24.53, 44.51, -64.12) |
| CIE-LCH | lch(24.53, 78.05, 304.77°) |
| OKLab | oklab(36.9% 0.0243 -0.1853) |
| OKLCH | oklch(36.9% 0.187 277.5) |
| XYZ | xyz(8.0082, 4.2649, 32.7423) |
| Luminance | 0.0427 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.23
Royal
#0C1793
ΔE00 3.89
Cobalt Blue
#030AA7
ΔE00 4.52
Ultramarine
#2000B1
ΔE00 4.86
Royal Blue (survey)
#0504AA
ΔE00 4.94
True Blue
#010FCC
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31229E #8F9E22
analogous
#22519E #31229E #6F229E
triadic
#31229E #9E3122 #229E31
tetradic
#31229E #9E2251 #8F9E22 #229E6F
square
#31229E #9E2251 #8F9E22 #229E6F
split-complementary
#31229E #9E6F22 #519E22
monochromatic
#120C39 #21176C #31229E #412DD0 #6D5EDC
Accessibility & contrast
On white
11.33
#31229E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#31229E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31229E
11.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31229E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31229E | 1.00 | 11.33 | 1.85 | 11.33 |
| #FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #31229e; /* rgb */ color: rgb(49, 34, 158); /* oklch */ color: oklch(36.9% 0.187 277.5);
Tailwind
colors: {
custom: {
50: '#7a60bc',
500: '#31229e',
950: '#000000',
},
}SCSS
$custom: #31229e; $custom-light: #7a60bc; $custom-dark: #000000;
JSON
{
"hex": "#31229e",
"rgb": {
"r": 49,
"g": 34,
"b": 158
},
"hsl": {
"h": 247.258,
"s": 64.583,
"l": 37.647
},
"oklch": {
"l": 0.36898,
"c": 0.18684,
"h": 277.5
},
"luminance": 0.04266
}Semantic roles & 50–950 ramp
primary
#31229E
secondary
#B5C15B
accent
#E840D3
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981