#31395B#31395B
#31395B is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.4% C 0.060 H 272.9°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).
Color values
| HEX | #31395B |
|---|---|
| RGB | rgb(49, 57, 91) |
| HSL | hsl(229, 30%, 27%) |
| HSV | hsv(229, 46%, 36%) |
| CMYK | cmyk(46.2%, 37.4%, 0%, 64.3%) |
| CIE-LAB | lab(24.75, 6.81, -21.43) |
| CIE-LCH | lch(24.75, 22.48, 287.63°) |
| OKLab | oklab(35.37% 0.0031 -0.0602) |
| OKLCH | oklch(35.37% 0.06 272.9) |
| XYZ | xyz(4.6175, 4.3343, 10.4888) |
| Luminance | 0.0433 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy Blue
#1B2A4A
ΔE00 5.46
Marine
#042E60
ΔE00 7.55
Marine Blue
#01386A
ΔE00 8.32
Twilight Blue
#0A437A
ΔE00 9.80
Dusk
#4E5481
ΔE00 9.86
Darkish Blue
#014182
ΔE00 10.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31395B #5B5331
analogous
#314E5B #31395B #3E315B
triadic
#31395B #5B3139 #395B31
tetradic
#31395B #5B314E #5B5331 #315B3E
square
#31395B #5B314E #5B5331 #315B3E
split-complementary
#31395B #5B3E31 #4E5B31
monochromatic
#0B0C14 #1C2033 #31395B #465283 #5E6CA8
Accessibility & contrast
On white
11.25
#31395B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#31395B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31395B
11.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31395B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31395B | 1.00 | 11.25 | 1.87 | 11.25 |
| #FFFFFF | 11.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D3D5C
Deuteranopia (green-blind)
#29395A
Tritanopia (blue-blind)
#234045
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #31395b; /* rgb */ color: rgb(49, 57, 91); /* oklch */ color: oklch(35.4% 0.060 272.9);
Tailwind
colors: {
custom: {
50: '#6b6f89',
500: '#31395b',
950: '#000000',
},
}SCSS
$custom: #31395b; $custom-light: #6b6f89; $custom-dark: #000000;
JSON
{
"hex": "#31395b",
"rgb": {
"r": 49,
"g": 57,
"b": 91
},
"hsl": {
"h": 228.571,
"s": 30,
"l": 27.451
},
"oklch": {
"l": 0.35373,
"c": 0.06024,
"h": 272.9
},
"luminance": 0.04335
}Semantic roles & 50–950 ramp
primary
#31395B
secondary
#8C835C
accent
#B362C6
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07070B
muted
#7A7A7C