#313C9B#313C9B
#313C9B is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.154 H 272.5°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).
Color values
| HEX | #313C9B |
|---|---|
| RGB | rgb(49, 60, 155) |
| HSL | hsl(234, 52%, 40%) |
| HSV | hsv(234, 68%, 61%) |
| CMYK | cmyk(68.4%, 61.3%, 0%, 39.2%) |
| CIE-LAB | lab(30.04, 27.74, -53.25) |
| CIE-LCH | lch(30.04, 60.04, 297.52°) |
| OKLab | oklab(40.78% 0.0068 -0.1535) |
| OKLCH | oklch(40.78% 0.154 272.5) |
| XYZ | xyz(8.7969, 6.2504, 31.7469) |
| Luminance | 0.0625 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.86
Blueberry
#464196
ΔE00 3.58
Darkslateblue
#483D8B
ΔE00 5.03
Cobalt
#0047AB
ΔE00 5.93
Ocean Blue
#4F42B5
ΔE00 5.96
Blue Blue
#2242C7
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C9B #9B9031
analogous
#31719B #313C9B #5B319B
triadic
#313C9B #9B313C #3C9B31
tetradic
#313C9B #9B3171 #9B9031 #319B5B
square
#313C9B #9B3171 #9B9031 #319B5B
split-complementary
#313C9B #9B5B31 #719B31
monochromatic
#14183E #222A6D #313C9B #4552C4 #737DD3
Accessibility & contrast
On white
9.33
#313C9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#313C9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C9B
9.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C9B | 1.00 | 9.33 | 2.25 | 9.33 |
| #FFFFFF | 9.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #313c9b; /* rgb */ color: rgb(49, 60, 155); /* oklch */ color: oklch(40.8% 0.154 272.5);
Tailwind
colors: {
custom: {
50: '#7771b9',
500: '#313c9b',
950: '#000000',
},
}SCSS
$custom: #313c9b; $custom-light: #7771b9; $custom-dark: #000000;
JSON
{
"hex": "#313c9b",
"rgb": {
"r": 49,
"g": 60,
"b": 155
},
"hsl": {
"h": 233.774,
"s": 51.961,
"l": 40
},
"oklch": {
"l": 0.40784,
"c": 0.15363,
"h": 272.5
},
"luminance": 0.06251
}Semantic roles & 50–950 ramp
primary
#313C9B
secondary
#BBB36D
accent
#CD4CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81