#313B99#313B99
#313B99 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.152 H 272.9°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).
Color values
| HEX | #313B99 |
|---|---|
| RGB | rgb(49, 59, 153) |
| HSL | hsl(234, 51%, 40%) |
| HSV | hsv(234, 68%, 60%) |
| CMYK | cmyk(68%, 61.4%, 0%, 40%) |
| CIE-LAB | lab(29.61, 27.67, -52.72) |
| CIE-LCH | lch(29.61, 59.54, 297.69°) |
| OKLab | oklab(40.42% 0.0077 -0.1519) |
| OKLCH | oklch(40.42% 0.152 272.9) |
| XYZ | xyz(8.5784, 6.0800, 30.8523) |
| Luminance | 0.0608 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.01
Blueberry
#464196
ΔE00 3.58
Darkslateblue
#483D8B
ΔE00 4.85
Ocean Blue
#4F42B5
ΔE00 6.17
Cobalt
#0047AB
ΔE00 6.25
Blue Blue
#2242C7
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313B99 #998F31
analogous
#316F99 #313B99 #5B3199
triadic
#313B99 #99313B #3B9931
tetradic
#313B99 #99316F #998F31 #31995B
square
#313B99 #99316F #998F31 #31995B
split-complementary
#313B99 #995B31 #6F9931
monochromatic
#13173C #22296B #313B99 #4450C3 #727CD2
Accessibility & contrast
On white
9.48
#313B99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#313B99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313B99
9.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313B99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313B99 | 1.00 | 9.48 | 2.22 | 9.48 |
| #FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #313b99; /* rgb */ color: rgb(49, 59, 153); /* oklch */ color: oklch(40.4% 0.152 272.9);
Tailwind
colors: {
custom: {
50: '#7671b8',
500: '#313b99',
950: '#000000',
},
}SCSS
$custom: #313b99; $custom-light: #7671b8; $custom-dark: #000000;
JSON
{
"hex": "#313b99",
"rgb": {
"r": 49,
"g": 59,
"b": 153
},
"hsl": {
"h": 234.231,
"s": 51.485,
"l": 39.608
},
"oklch": {
"l": 0.4042,
"c": 0.15213,
"h": 272.9
},
"luminance": 0.06081
}Semantic roles & 50–950 ramp
primary
#313B99
secondary
#BAB26C
accent
#CD4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80