#31399F#31399F
#31399F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.6% C 0.163 H 273.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).
Color values
| HEX | #31399F |
|---|---|
| RGB | rgb(49, 57, 159) |
| HSL | hsl(236, 53%, 41%) |
| HSV | hsv(236, 69%, 62%) |
| CMYK | cmyk(69.2%, 64.2%, 0%, 37.6%) |
| CIE-LAB | lab(29.62, 31.15, -56.36) |
| CIE-LCH | lch(29.62, 64.39, 298.93°) |
| OKLab | oklab(40.58% 0.0091 -0.1626) |
| OKLCH | oklch(40.58% 0.163 273.2) |
| XYZ | xyz(8.9857, 6.0816, 33.4945) |
| Luminance | 0.0608 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.15
Blueberry
#464196
ΔE00 4.04
Darkslateblue
#483D8B
ΔE00 5.34
Ocean Blue
#4F42B5
ΔE00 5.60
Blue Blue
#2242C7
ΔE00 5.91
Cobalt
#0047AB
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31399F #9F9731
analogous
#31709F #31399F #60319F
triadic
#31399F #9F3139 #399F31
tetradic
#31399F #9F3170 #9F9731 #319F60
square
#31399F #9F3170 #9F9731 #319F60
split-complementary
#31399F #9F6031 #709F31
monochromatic
#141741 #232870 #31399F #4750C6 #767DD5
Accessibility & contrast
On white
9.47
#31399F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#31399F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31399F
9.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31399F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31399F | 1.00 | 9.47 | 2.22 | 9.47 |
| #FFFFFF | 9.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #31399f; /* rgb */ color: rgb(49, 57, 159); /* oklch */ color: oklch(40.6% 0.163 273.2);
Tailwind
colors: {
custom: {
50: '#786fbc',
500: '#31399f',
950: '#000000',
},
}SCSS
$custom: #31399f; $custom-light: #786fbc; $custom-dark: #000000;
JSON
{
"hex": "#31399f",
"rgb": {
"r": 49,
"g": 57,
"b": 159
},
"hsl": {
"h": 235.636,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.40581,
"c": 0.16289,
"h": 273.2
},
"luminance": 0.06082
}Semantic roles & 50–950 ramp
primary
#31399F
secondary
#BDB76F
accent
#D24CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81