#313C94#313C94
#313C94 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.144 H 272.7°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #313C94 |
|---|---|
| RGB | rgb(49, 60, 148) |
| HSL | hsl(233, 50%, 39%) |
| HSV | hsv(233, 67%, 58%) |
| CMYK | cmyk(66.9%, 59.5%, 0%, 42%) |
| CIE-LAB | lab(29.47, 25.18, -49.90) |
| CIE-LCH | lch(29.47, 55.90, 296.78°) |
| OKLab | oklab(40.18% 0.0069 -0.1436) |
| OKLCH | oklch(40.18% 0.144 272.7) |
| XYZ | xyz(8.2260, 6.0221, 28.7401) |
| Luminance | 0.0602 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.50
Sapphire (survey)
#2138AB
ΔE00 3.83
Darkslateblue
#483D8B
ΔE00 4.62
Cobalt
#0047AB
ΔE00 6.22
Cobalt (survey)
#1E488F
ΔE00 6.24
Ocean Blue
#4F42B5
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C94 #948931
analogous
#316D94 #313C94 #573194
triadic
#313C94 #94313C #3C9431
tetradic
#313C94 #94316D #948931 #319457
square
#313C94 #94316D #948931 #319457
split-complementary
#313C94 #945731 #6D9431
monochromatic
#131738 #222966 #313C94 #4250C0 #707AD0
Accessibility & contrast
On white
9.53
#313C94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#313C94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C94
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C94 | 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)
#004A97
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #313c94; /* rgb */ color: rgb(49, 60, 148); /* oklch */ color: oklch(40.2% 0.144 272.7);
Tailwind
colors: {
custom: {
50: '#7571b4',
500: '#313c94',
950: '#000000',
},
}SCSS
$custom: #313c94; $custom-light: #7571b4; $custom-dark: #000000;
JSON
{
"hex": "#313c94",
"rgb": {
"r": 49,
"g": 60,
"b": 148
},
"hsl": {
"h": 233.333,
"s": 50.254,
"l": 38.627
},
"oklch": {
"l": 0.40185,
"c": 0.1438,
"h": 272.7
},
"luminance": 0.06023
}Semantic roles & 50–950 ramp
primary
#313C94
secondary
#B7AF69
accent
#CA4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80