#313C7E#313C7E
#313C7E is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.4% C 0.112 H 272.9°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).
Color values
| HEX | #313C7E |
|---|---|
| RGB | rgb(49, 60, 126) |
| HSL | hsl(231, 44%, 34%) |
| HSV | hsv(231, 61%, 49%) |
| CMYK | cmyk(61.1%, 52.4%, 0%, 50.6%) |
| CIE-LAB | lab(27.82, 17.12, -38.94) |
| CIE-LCH | lch(27.82, 42.54, 293.74°) |
| OKLab | oklab(38.43% 0.0057 -0.1114) |
| OKLCH | oklch(38.43% 0.112 272.9) |
| XYZ | xyz(6.6471, 5.3905, 20.4248) |
| Luminance | 0.0539 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.05
Blueberry
#464196
ΔE00 5.26
Cobalt (survey)
#1E488F
ΔE00 6.23
Darkish Blue
#014182
ΔE00 6.66
Marine Blue
#01386A
ΔE00 7.21
Twilight Blue
#0A437A
ΔE00 7.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C7E #7E7331
analogous
#31637E #313C7E #4D317E
triadic
#313C7E #7E313C #3C7E31
tetradic
#313C7E #7E3163 #7E7331 #317E4D
square
#313C7E #7E3163 #7E7331 #317E4D
split-complementary
#313C7E #7E4D31 #637E31
monochromatic
#0F1226 #202752 #313C7E #4251AA #6673C3
Accessibility & contrast
On white
10.10
#313C7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.08
#313C7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C7E
10.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C7E | 1.00 | 10.10 | 2.08 | 10.10 |
| #FFFFFF | 10.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#194580
Deuteranopia (green-blind)
#093E7D
Tritanopia (blue-blind)
#004B57
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #313c7e; /* rgb */ color: rgb(49, 60, 126); /* oklch */ color: oklch(38.4% 0.112 272.9);
Tailwind
colors: {
custom: {
50: '#7171a4',
500: '#313c7e',
950: '#000000',
},
}SCSS
$custom: #313c7e; $custom-light: #7171a4; $custom-dark: #000000;
JSON
{
"hex": "#313c7e",
"rgb": {
"r": 49,
"g": 60,
"b": 126
},
"hsl": {
"h": 231.429,
"s": 44,
"l": 34.314
},
"oklch": {
"l": 0.38426,
"c": 0.11154,
"h": 272.9
},
"luminance": 0.05391
}Semantic roles & 50–950 ramp
primary
#313C7E
secondary
#ABA060
accent
#C154D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F