#31299C#31299C
#31299C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.177 H 276.7°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).
Color values
| HEX | #31299C |
|---|---|
| RGB | rgb(49, 41, 156) |
| HSL | hsl(244, 58%, 39%) |
| HSV | hsv(244, 74%, 61%) |
| CMYK | cmyk(68.6%, 73.7%, 0%, 38.8%) |
| CIE-LAB | lab(25.68, 40.01, -61.00) |
| CIE-LCH | lch(25.68, 72.95, 303.26°) |
| OKLab | oklab(37.65% 0.0207 -0.1762) |
| OKLCH | oklch(37.65% 0.177 276.7) |
| XYZ | xyz(8.0584, 4.6384, 31.9167) |
| Luminance | 0.0464 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.48
Royal
#0C1793
ΔE00 4.82
Sapphire (survey)
#2138AB
ΔE00 5.00
Cobalt Blue
#030AA7
ΔE00 5.95
Ultramarine
#2000B1
ΔE00 6.40
Royal Blue (survey)
#0504AA
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31299C #949C29
analogous
#295A9C #31299C #6A299C
triadic
#31299C #9C3129 #299C31
tetradic
#31299C #9C295A #949C29 #299C6A
square
#31299C #9C295A #949C29 #299C6A
split-complementary
#31299C #9C6A29 #5A9C29
monochromatic
#13103B #221C6C #31299C #4238CB #7068D7
Accessibility & contrast
On white
10.89
#31299C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#31299C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31299C
10.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31299C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31299C | 1.00 | 10.89 | 1.93 | 10.89 |
| #FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #31299c; /* rgb */ color: rgb(49, 41, 156); /* oklch */ color: oklch(37.6% 0.177 276.7);
Tailwind
colors: {
custom: {
50: '#7964ba',
500: '#31299c',
950: '#000000',
},
}SCSS
$custom: #31299c; $custom-light: #7964ba; $custom-dark: #000000;
JSON
{
"hex": "#31299c",
"rgb": {
"r": 49,
"g": 41,
"b": 156
},
"hsl": {
"h": 244.174,
"s": 58.376,
"l": 38.627
},
"oklch": {
"l": 0.37647,
"c": 0.17743,
"h": 276.7
},
"luminance": 0.04639
}Semantic roles & 50–950 ramp
primary
#31299C
secondary
#B7BE63
accent
#E246D7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81