#31319F#31319F
#31319F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.172 H 275.0°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).
Color values
| HEX | #31319F |
|---|---|
| RGB | rgb(49, 49, 159) |
| HSL | hsl(240, 53%, 41%) |
| HSV | hsv(240, 69%, 62%) |
| CMYK | cmyk(69.2%, 69.2%, 0%, 37.6%) |
| CIE-LAB | lab(27.71, 36.22, -59.48) |
| CIE-LCH | lch(27.71, 69.64, 301.34°) |
| OKLab | oklab(39.2% 0.015 -0.1718) |
| OKLCH | oklch(39.2% 0.172 275) |
| XYZ | xyz(8.6209, 5.3520, 33.3729) |
| Luminance | 0.0535 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.12
Blueberry
#464196
ΔE00 5.48
Indigo Blue
#3A18B1
ΔE00 5.97
Darkslateblue
#483D8B
ΔE00 6.07
Ocean Blue
#4F42B5
ΔE00 6.43
Royal
#0C1793
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31319F #9F9F31
analogous
#31689F #31319F #68319F
triadic
#31319F #9F3131 #319F31
tetradic
#31319F #9F3168 #9F9F31 #319F68
square
#31319F #9F3168 #9F9F31 #319F68
split-complementary
#31319F #9F6831 #689F31
monochromatic
#141441 #232370 #31319F #4747C6 #7676D5
Accessibility & contrast
On white
10.14
#31319F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#31319F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31319F
10.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31319F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31319F | 1.00 | 10.14 | 2.07 | 10.14 |
| #FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #31319f; /* rgb */ color: rgb(49, 49, 159); /* oklch */ color: oklch(39.2% 0.172 275.0);
Tailwind
colors: {
custom: {
50: '#796abc',
500: '#31319f',
950: '#000000',
},
}SCSS
$custom: #31319f; $custom-light: #796abc; $custom-dark: #000000;
JSON
{
"hex": "#31319f",
"rgb": {
"r": 49,
"g": 49,
"b": 159
},
"hsl": {
"h": 240,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.39196,
"c": 0.17245,
"h": 275
},
"luminance": 0.05353
}Semantic roles & 50–950 ramp
primary
#31319F
secondary
#BDBD6F
accent
#DC4CDC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81