#31398E#31398E
#31398E is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.139 H 273.9°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).
Color values
| HEX | #31398E |
|---|---|
| RGB | rgb(49, 57, 142) |
| HSL | hsl(235, 49%, 37%) |
| HSV | hsv(235, 65%, 56%) |
| CMYK | cmyk(65.5%, 59.9%, 0%, 44.3%) |
| CIE-LAB | lab(28.20, 25.00, -48.28) |
| CIE-LCH | lch(28.20, 54.36, 297.37°) |
| OKLab | oklab(39.09% 0.0096 -0.1389) |
| OKLCH | oklch(39.09% 0.139 273.9) |
| XYZ | xyz(7.6106, 5.5316, 26.2526) |
| Luminance | 0.0553 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.81
Darkslateblue
#483D8B
ΔE00 4.27
Sapphire (survey)
#2138AB
ΔE00 4.50
Cobalt (survey)
#1E488F
ΔE00 6.97
Cobalt
#0047AB
ΔE00 7.30
Ocean Blue
#4F42B5
ΔE00 7.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31398E #8E8631
analogous
#31678E #31398E #58318E
triadic
#31398E #8E3139 #398E31
tetradic
#31398E #8E3167 #8E8631 #318E58
square
#31398E #8E3167 #8E8631 #318E58
split-complementary
#31398E #8E5831 #678E31
monochromatic
#121433 #212761 #31398E #414BBB #6D75CD
Accessibility & contrast
On white
9.97
#31398E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#31398E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31398E
9.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31398E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31398E | 1.00 | 9.97 | 2.11 | 9.97 |
| #FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #31398e; /* rgb */ color: rgb(49, 57, 142); /* oklch */ color: oklch(39.1% 0.139 273.9);
Tailwind
colors: {
custom: {
50: '#746fb0',
500: '#31398e',
950: '#000000',
},
}SCSS
$custom: #31398e; $custom-light: #746fb0; $custom-dark: #000000;
JSON
{
"hex": "#31398e",
"rgb": {
"r": 49,
"g": 57,
"b": 142
},
"hsl": {
"h": 234.839,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.39091,
"c": 0.13923,
"h": 273.9
},
"luminance": 0.05532
}Semantic roles & 50–950 ramp
primary
#31398E
secondary
#B4AD67
accent
#CC50D8
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F