#313E7F#313E7F
#313E7F is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.9% C 0.110 H 271.9°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).
Color values
| HEX | #313E7F |
|---|---|
| RGB | rgb(49, 62, 127) |
| HSL | hsl(230, 44%, 35%) |
| HSV | hsv(230, 61%, 50%) |
| CMYK | cmyk(61.4%, 51.2%, 0%, 50.2%) |
| CIE-LAB | lab(28.46, 16.12, -38.54) |
| CIE-LCH | lch(28.46, 41.77, 292.71°) |
| OKLab | oklab(38.93% 0.0036 -0.1102) |
| OKLCH | oklch(38.93% 0.11 271.9) |
| XYZ | xyz(6.8187, 5.6300, 20.8019) |
| Luminance | 0.0563 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 5.31
Darkslateblue
#483D8B
ΔE00 5.33
Cobalt (survey)
#1E488F
ΔE00 5.61
Darkish Blue
#014182
ΔE00 6.20
Twilight Blue
#0A437A
ΔE00 6.87
Marine Blue
#01386A
ΔE00 7.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313E7F #7F7231
analogous
#31657F #313E7F #4B317F
triadic
#313E7F #7F313E #3E7F31
tetradic
#313E7F #7F3165 #7F7231 #317F4B
square
#313E7F #7F3165 #7F7231 #317F4B
split-complementary
#313E7F #7F4B31 #657F31
monochromatic
#0F1327 #202853 #313E7F #4254AB #6676C4
Accessibility & contrast
On white
9.88
#313E7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#313E7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313E7F
9.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313E7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313E7F | 1.00 | 9.88 | 2.13 | 9.88 |
| #FFFFFF | 9.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C4781
Deuteranopia (green-blind)
#0E407E
Tritanopia (blue-blind)
#004D58
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313e7f; /* rgb */ color: rgb(49, 62, 127); /* oklch */ color: oklch(38.9% 0.110 271.9);
Tailwind
colors: {
custom: {
50: '#7173a4',
500: '#313e7f',
950: '#000000',
},
}SCSS
$custom: #313e7f; $custom-light: #7173a4; $custom-dark: #000000;
JSON
{
"hex": "#313e7f",
"rgb": {
"r": 49,
"g": 62,
"b": 127
},
"hsl": {
"h": 230,
"s": 44.318,
"l": 34.51
},
"oklch": {
"l": 0.38933,
"c": 0.11025,
"h": 271.9
},
"luminance": 0.05631
}Semantic roles & 50–950 ramp
primary
#313E7F
secondary
#AB9F60
accent
#BF54D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F