#313B9B#313B9B
#313B9B is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.6% C 0.155 H 272.8°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).
Color values
| HEX | #313B9B |
|---|---|
| RGB | rgb(49, 59, 155) |
| HSL | hsl(234, 52%, 40%) |
| HSV | hsv(234, 68%, 61%) |
| CMYK | cmyk(68.4%, 61.9%, 0%, 39.2%) |
| CIE-LAB | lab(29.78, 28.40, -53.67) |
| CIE-LCH | lch(29.78, 60.72, 297.89°) |
| OKLab | oklab(40.59% 0.0076 -0.1547) |
| OKLCH | oklch(40.59% 0.155 272.8) |
| XYZ | xyz(8.7450, 6.1467, 31.7296) |
| Luminance | 0.0615 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.75
Blueberry
#464196
ΔE00 3.64
Darkslateblue
#483D8B
ΔE00 5.00
Ocean Blue
#4F42B5
ΔE00 5.95
Cobalt
#0047AB
ΔE00 6.19
Blue Blue
#2242C7
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313B9B #9B9131
analogous
#31709B #313B9B #5C319B
triadic
#313B9B #9B313B #3B9B31
tetradic
#313B9B #9B3170 #9B9131 #319B5C
square
#313B9B #9B3170 #9B9131 #319B5C
split-complementary
#313B9B #9B5C31 #709B31
monochromatic
#14183E #22296D #313B9B #4551C4 #737CD3
Accessibility & contrast
On white
9.42
#313B9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#313B9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313B9B
9.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313B9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313B9B | 1.00 | 9.42 | 2.23 | 9.42 |
| #FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #313b9b; /* rgb */ color: rgb(49, 59, 155); /* oklch */ color: oklch(40.6% 0.155 272.8);
Tailwind
colors: {
custom: {
50: '#7771b9',
500: '#313b9b',
950: '#000000',
},
}SCSS
$custom: #313b9b; $custom-light: #7771b9; $custom-dark: #000000;
JSON
{
"hex": "#313b9b",
"rgb": {
"r": 49,
"g": 59,
"b": 155
},
"hsl": {
"h": 234.34,
"s": 51.961,
"l": 40
},
"oklch": {
"l": 0.40594,
"c": 0.15491,
"h": 272.8
},
"luminance": 0.06147
}Semantic roles & 50–950 ramp
primary
#313B9B
secondary
#BBB46D
accent
#CE4CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81