#313F89#313F89
#313F89 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.124 H 271.6°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #313F89 |
|---|---|
| RGB | rgb(49, 63, 137) |
| HSL | hsl(230, 47%, 36%) |
| HSV | hsv(230, 64%, 54%) |
| CMYK | cmyk(64.2%, 54%, 0%, 46.3%) |
| CIE-LAB | lab(29.45, 19.12, -43.17) |
| CIE-LCH | lch(29.45, 47.21, 293.89°) |
| OKLab | oklab(39.9% 0.0035 -0.1238) |
| OKLCH | oklch(39.9% 0.124 271.6) |
| XYZ | xyz(7.5580, 6.0135, 24.4245) |
| Luminance | 0.0601 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.28
Darkslateblue
#483D8B
ΔE00 4.94
Cobalt (survey)
#1E488F
ΔE00 5.05
Sapphire (survey)
#2138AB
ΔE00 5.94
Darkish Blue
#014182
ΔE00 6.17
Cobalt
#0047AB
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313F89 #897B31
analogous
#316B89 #313F89 #4F3189
triadic
#313F89 #89313F #3F8931
tetradic
#313F89 #89316B #897B31 #31894F
square
#313F89 #89316B #897B31 #31894F
split-complementary
#313F89 #894F31 #6B8931
monochromatic
#11162F #212A5C #313F89 #4154B6 #6B7ACA
Accessibility & contrast
On white
9.53
#313F89 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#313F89 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313F89
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313F89 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313F89 | 1.00 | 9.53 | 2.20 | 9.53 |
| #FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#11498C
Deuteranopia (green-blind)
#004287
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #313f89; /* rgb */ color: rgb(49, 63, 137); /* oklch */ color: oklch(39.9% 0.124 271.6);
Tailwind
colors: {
custom: {
50: '#7373ac',
500: '#313f89',
950: '#000000',
},
}SCSS
$custom: #313f89; $custom-light: #7373ac; $custom-dark: #000000;
JSON
{
"hex": "#313f89",
"rgb": {
"r": 49,
"g": 63,
"b": 137
},
"hsl": {
"h": 230.455,
"s": 47.312,
"l": 36.471
},
"oklch": {
"l": 0.39904,
"c": 0.12384,
"h": 271.6
},
"luminance": 0.06014
}Semantic roles & 50–950 ramp
primary
#313F89
secondary
#B1A564
accent
#C251D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F