#31398F#31398F
#31398F is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.2% C 0.141 H 273.9°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).
Color values
| HEX | #31398F |
|---|---|
| RGB | rgb(49, 57, 143) |
| HSL | hsl(235, 49%, 38%) |
| HSV | hsv(235, 66%, 56%) |
| CMYK | cmyk(65.7%, 60.1%, 0%, 43.9%) |
| CIE-LAB | lab(28.28, 25.36, -48.76) |
| CIE-LCH | lch(28.28, 54.96, 297.48°) |
| OKLab | oklab(39.18% 0.0096 -0.1403) |
| OKLCH | oklch(39.18% 0.141 273.9) |
| XYZ | xyz(7.6860, 5.5617, 26.6498) |
| Luminance | 0.0556 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.78
Darkslateblue
#483D8B
ΔE00 4.30
Sapphire (survey)
#2138AB
ΔE00 4.35
Cobalt (survey)
#1E488F
ΔE00 7.00
Cobalt
#0047AB
ΔE00 7.23
Ocean Blue
#4F42B5
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31398F #8F8731
analogous
#31688F #31398F #58318F
triadic
#31398F #8F3139 #398F31
tetradic
#31398F #8F3168 #8F8731 #318F58
square
#31398F #8F3168 #8F8731 #318F58
split-complementary
#31398F #8F5831 #688F31
monochromatic
#121534 #212761 #31398F #414BBD #6D75CD
Accessibility & contrast
On white
9.94
#31398F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#31398F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31398F
9.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31398F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31398F | 1.00 | 9.94 | 2.11 | 9.94 |
| #FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #31398f; /* rgb */ color: rgb(49, 57, 143); /* oklch */ color: oklch(39.2% 0.141 273.9);
Tailwind
colors: {
custom: {
50: '#746fb0',
500: '#31398f',
950: '#000000',
},
}SCSS
$custom: #31398f; $custom-light: #746fb0; $custom-dark: #000000;
JSON
{
"hex": "#31398f",
"rgb": {
"r": 49,
"g": 57,
"b": 143
},
"hsl": {
"h": 234.894,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.39176,
"c": 0.14066,
"h": 273.9
},
"luminance": 0.05562
}Semantic roles & 50–950 ramp
primary
#31398F
secondary
#B5AE67
accent
#CD4FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80