#31399E#31399E
#31399E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.5% C 0.162 H 273.2°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).
Color values
| HEX | #31399E |
|---|---|
| RGB | rgb(49, 57, 158) |
| HSL | hsl(236, 53%, 41%) |
| HSV | hsv(236, 69%, 62%) |
| CMYK | cmyk(69%, 63.9%, 0%, 38%) |
| CIE-LAB | lab(29.53, 30.79, -55.89) |
| CIE-LCH | lch(29.53, 63.81, 298.85°) |
| OKLab | oklab(40.49% 0.0091 -0.1613) |
| OKLCH | oklch(40.49% 0.162 273.2) |
| XYZ | xyz(8.8992, 6.0470, 33.0393) |
| Luminance | 0.0605 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.26
Blueberry
#464196
ΔE00 3.99
Darkslateblue
#483D8B
ΔE00 5.25
Ocean Blue
#4F42B5
ΔE00 5.70
Blue Blue
#2242C7
ΔE00 6.03
Cobalt
#0047AB
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31399E #9E9631
analogous
#316F9E #31399E #5F319E
triadic
#31399E #9E3139 #399E31
tetradic
#31399E #9E316F #9E9631 #319E5F
square
#31399E #9E316F #9E9631 #319E5F
split-complementary
#31399E #9E5F31 #6F9E31
monochromatic
#141741 #23286F #31399E #4650C6 #757CD4
Accessibility & contrast
On white
9.50
#31399E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#31399E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31399E
9.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31399E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31399E | 1.00 | 9.50 | 2.21 | 9.50 |
| #FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #31399e; /* rgb */ color: rgb(49, 57, 158); /* oklch */ color: oklch(40.5% 0.162 273.2);
Tailwind
colors: {
custom: {
50: '#786fbc',
500: '#31399e',
950: '#000000',
},
}SCSS
$custom: #31399e; $custom-light: #786fbc; $custom-dark: #000000;
JSON
{
"hex": "#31399e",
"rgb": {
"r": 49,
"g": 57,
"b": 158
},
"hsl": {
"h": 235.596,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.4049,
"c": 0.16154,
"h": 273.2
},
"luminance": 0.06048
}Semantic roles & 50–950 ramp
primary
#31399E
secondary
#BCB76E
accent
#D14CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81