#313C9F#313C9F
#313C9F is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.1% C 0.159 H 272.4°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).
Color values
| HEX | #313C9F |
|---|---|
| RGB | rgb(49, 60, 159) |
| HSL | hsl(234, 53%, 41%) |
| HSV | hsv(234, 69%, 62%) |
| CMYK | cmyk(69.2%, 62.3%, 0%, 37.6%) |
| CIE-LAB | lab(30.37, 29.19, -55.13) |
| CIE-LCH | lch(30.37, 62.39, 297.90°) |
| OKLab | oklab(41.13% 0.0067 -0.159) |
| OKLCH | oklch(41.13% 0.159 272.4) |
| XYZ | xyz(9.1384, 6.3870, 33.5454) |
| Luminance | 0.0639 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.38
Blueberry
#464196
ΔE00 3.76
Darkslateblue
#483D8B
ΔE00 5.34
Ocean Blue
#4F42B5
ΔE00 5.53
Blue Blue
#2242C7
ΔE00 5.61
Cobalt
#0047AB
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C9F #9F9431
analogous
#31739F #313C9F #5D319F
triadic
#313C9F #9F313C #3C9F31
tetradic
#313C9F #9F3173 #9F9431 #319F5D
square
#313C9F #9F3173 #9F9431 #319F5D
split-complementary
#313C9F #9F5D31 #739F31
monochromatic
#141941 #232A70 #313C9F #4754C6 #767FD5
Accessibility & contrast
On white
9.22
#313C9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#313C9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C9F
9.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C9F | 1.00 | 9.22 | 2.28 | 9.22 |
| #FFFFFF | 9.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #313c9f; /* rgb */ color: rgb(49, 60, 159); /* oklch */ color: oklch(41.1% 0.159 272.4);
Tailwind
colors: {
custom: {
50: '#7871bc',
500: '#313c9f',
950: '#000000',
},
}SCSS
$custom: #313c9f; $custom-light: #7871bc; $custom-dark: #000000;
JSON
{
"hex": "#313c9f",
"rgb": {
"r": 49,
"g": 60,
"b": 159
},
"hsl": {
"h": 234,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.41133,
"c": 0.15915,
"h": 272.4
},
"luminance": 0.06388
}Semantic roles & 50–950 ramp
primary
#313C9F
secondary
#BDB56F
accent
#CE4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81