#313F7C#313F7C
#313F7C is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.9% C 0.104 H 271.1°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).
Color values
| HEX | #313F7C |
|---|---|
| RGB | rgb(49, 63, 124) |
| HSL | hsl(229, 43%, 34%) |
| HSV | hsv(229, 60%, 49%) |
| CMYK | cmyk(60.5%, 49.2%, 0%, 51.4%) |
| CIE-LAB | lab(28.55, 14.35, -36.52) |
| CIE-LCH | lch(28.55, 39.24, 291.45°) |
| OKLab | oklab(38.93% 0.002 -0.1042) |
| OKLCH | oklch(38.93% 0.104 271.1) |
| XYZ | xyz(6.6810, 5.6627, 19.8058) |
| Luminance | 0.0566 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 5.52
Darkslateblue
#483D8B
ΔE00 5.83
Blueberry
#464196
ΔE00 5.85
Darkish Blue
#014182
ΔE00 6.02
Twilight Blue
#0A437A
ΔE00 6.57
Marine Blue
#01386A
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313F7C #7C6E31
analogous
#31657C #313F7C #49317C
triadic
#313F7C #7C313F #3F7C31
tetradic
#313F7C #7C3165 #7C6E31 #317C49
square
#313F7C #7C3165 #7C6E31 #317C49
split-complementary
#313F7C #7C4931 #657C31
monochromatic
#0E1224 #202950 #313F7C #4255A8 #6577C2
Accessibility & contrast
On white
9.85
#313F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#313F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313F7C
9.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313F7C | 1.00 | 9.85 | 2.13 | 9.85 |
| #FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#22477E
Deuteranopia (green-blind)
#16407B
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313f7c; /* rgb */ color: rgb(49, 63, 124); /* oklch */ color: oklch(38.9% 0.104 271.1);
Tailwind
colors: {
custom: {
50: '#7073a2',
500: '#313f7c',
950: '#000000',
},
}SCSS
$custom: #313f7c; $custom-light: #7073a2; $custom-dark: #000000;
JSON
{
"hex": "#313f7c",
"rgb": {
"r": 49,
"g": 63,
"b": 124
},
"hsl": {
"h": 228.8,
"s": 43.353,
"l": 33.922
},
"oklch": {
"l": 0.38933,
"c": 0.10426,
"h": 271.1
},
"luminance": 0.05663
}Semantic roles & 50–950 ramp
primary
#313F7C
secondary
#AA9C5F
accent
#BC55D3
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08080F
muted
#7B7B7F