#313B5F#313B5F
#313B5F is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.1% C 0.064 H 271.1°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).
Color values
| HEX | #313B5F |
|---|---|
| RGB | rgb(49, 59, 95) |
| HSL | hsl(227, 32%, 28%) |
| HSV | hsv(227, 48%, 37%) |
| CMYK | cmyk(48.4%, 37.9%, 0%, 62.7%) |
| CIE-LAB | lab(25.58, 6.79, -22.72) |
| CIE-LCH | lch(25.58, 23.71, 286.64°) |
| OKLab | oklab(36.09% 0.0013 -0.0639) |
| OKLCH | oklch(36.09% 0.064 271.1) |
| XYZ | xyz(4.8955, 4.6068, 11.4555) |
| Luminance | 0.0461 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy Blue
#1B2A4A
ΔE00 5.91
Marine
#042E60
ΔE00 7.17
Marine Blue
#01386A
ΔE00 7.60
Twilight Blue
#0A437A
ΔE00 8.83
Dusk
#4E5481
ΔE00 9.16
Darkish Blue
#014182
ΔE00 9.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313B5F #5F5531
analogous
#31525F #313B5F #3E315F
triadic
#313B5F #5F313B #3B5F31
tetradic
#313B5F #5F3152 #5F5531 #315F3E
square
#313B5F #5F3152 #5F5531 #315F3E
split-complementary
#313B5F #5F3E31 #525F31
monochromatic
#0A0D14 #1C2237 #313B5F #465487 #5E6FAC
Accessibility & contrast
On white
10.93
#313B5F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#313B5F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313B5F
10.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313B5F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313B5F | 1.00 | 10.93 | 1.92 | 10.93 |
| #FFFFFF | 10.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E3F60
Deuteranopia (green-blind)
#2A3B5E
Tritanopia (blue-blind)
#204248
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #313b5f; /* rgb */ color: rgb(49, 59, 95); /* oklch */ color: oklch(36.1% 0.064 271.1);
Tailwind
colors: {
custom: {
50: '#6c708c',
500: '#313b5f',
950: '#000000',
},
}SCSS
$custom: #313b5f; $custom-light: #6c708c; $custom-dark: #000000;
JSON
{
"hex": "#313b5f",
"rgb": {
"r": 49,
"g": 59,
"b": 95
},
"hsl": {
"h": 226.957,
"s": 31.944,
"l": 28.235
},
"oklch": {
"l": 0.36091,
"c": 0.06391,
"h": 271.1
},
"luminance": 0.04607
}Semantic roles & 50–950 ramp
primary
#313B5F
secondary
#90855C
accent
#B160C8
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07070C
muted
#7A7A7D