#313B97#313B97
#313B97 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.149 H 273.0°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #313B97 |
|---|---|
| RGB | rgb(49, 59, 151) |
| HSL | hsl(234, 51%, 39%) |
| HSV | hsv(234, 68%, 59%) |
| CMYK | cmyk(67.5%, 60.9%, 0%, 40.8%) |
| CIE-LAB | lab(29.45, 26.94, -51.77) |
| CIE-LCH | lch(29.45, 58.36, 297.50°) |
| OKLab | oklab(40.25% 0.0077 -0.1491) |
| OKLCH | oklch(40.25% 0.149 273) |
| XYZ | xyz(8.4146, 6.0145, 29.9896) |
| Luminance | 0.0602 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.29
Blueberry
#464196
ΔE00 3.54
Darkslateblue
#483D8B
ΔE00 4.72
Cobalt
#0047AB
ΔE00 6.32
Ocean Blue
#4F42B5
ΔE00 6.40
Cobalt (survey)
#1E488F
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313B97 #978D31
analogous
#316E97 #313B97 #5A3197
triadic
#313B97 #97313B #3B9731
tetradic
#313B97 #97316E #978D31 #31975A
square
#313B97 #97316E #978D31 #31975A
split-complementary
#313B97 #975A31 #6E9731
monochromatic
#13173B #222969 #313B97 #4350C2 #717BD1
Accessibility & contrast
On white
9.53
#313B97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#313B97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313B97
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313B97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313B97 | 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)
#004A9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #313b97; /* rgb */ color: rgb(49, 59, 151); /* oklch */ color: oklch(40.2% 0.149 273.0);
Tailwind
colors: {
custom: {
50: '#7671b6',
500: '#313b97',
950: '#000000',
},
}SCSS
$custom: #313b97; $custom-light: #7671b6; $custom-dark: #000000;
JSON
{
"hex": "#313b97",
"rgb": {
"r": 49,
"g": 59,
"b": 151
},
"hsl": {
"h": 234.118,
"s": 51,
"l": 39.216
},
"oklch": {
"l": 0.40247,
"c": 0.14934,
"h": 273
},
"luminance": 0.06015
}Semantic roles & 50–950 ramp
primary
#313B97
secondary
#B9B16B
accent
#CD4DDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80