#313B94#313B94
#313B94 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.0% C 0.145 H 273.1°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).
Color values
| HEX | #313B94 |
|---|---|
| RGB | rgb(49, 59, 148) |
| HSL | hsl(234, 50%, 39%) |
| HSV | hsv(234, 67%, 58%) |
| CMYK | cmyk(66.9%, 60.1%, 0%, 42%) |
| CIE-LAB | lab(29.21, 25.85, -50.33) |
| CIE-LCH | lch(29.21, 56.58, 297.19°) |
| OKLab | oklab(39.99% 0.0078 -0.1449) |
| OKLCH | oklch(39.99% 0.145 273.1) |
| XYZ | xyz(8.1741, 5.9183, 28.7228) |
| Luminance | 0.0592 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.54
Sapphire (survey)
#2138AB
ΔE00 3.72
Darkslateblue
#483D8B
ΔE00 4.56
Cobalt
#0047AB
ΔE00 6.46
Cobalt (survey)
#1E488F
ΔE00 6.54
Ocean Blue
#4F42B5
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313B94 #948A31
analogous
#316C94 #313B94 #583194
triadic
#313B94 #94313B #3B9431
tetradic
#313B94 #94316C #948A31 #319458
square
#313B94 #94316C #948A31 #319458
split-complementary
#313B94 #945831 #6C9431
monochromatic
#131638 #222966 #313B94 #424FC0 #7079D0
Accessibility & contrast
On white
9.62
#313B94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#313B94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313B94
9.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313B94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313B94 | 1.00 | 9.62 | 2.18 | 9.62 |
| #FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004997
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#005161
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #313b94; /* rgb */ color: rgb(49, 59, 148); /* oklch */ color: oklch(40.0% 0.145 273.1);
Tailwind
colors: {
custom: {
50: '#7570b4',
500: '#313b94',
950: '#000000',
},
}SCSS
$custom: #313b94; $custom-light: #7570b4; $custom-dark: #000000;
JSON
{
"hex": "#313b94",
"rgb": {
"r": 49,
"g": 59,
"b": 148
},
"hsl": {
"h": 233.939,
"s": 50.254,
"l": 38.627
},
"oklch": {
"l": 0.3999,
"c": 0.14512,
"h": 273.1
},
"luminance": 0.05919
}Semantic roles & 50–950 ramp
primary
#313B94
secondary
#B7AF69
accent
#CC4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80