#31395F#31395F
#31395F is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.6% C 0.067 H 273.5°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).
Color values
| HEX | #31395F |
|---|---|
| RGB | rgb(49, 57, 95) |
| HSL | hsl(230, 32%, 28%) |
| HSV | hsv(230, 48%, 37%) |
| CMYK | cmyk(48.4%, 40%, 0%, 62.7%) |
| CIE-LAB | lab(24.97, 8.16, -23.69) |
| CIE-LCH | lch(24.97, 25.06, 289.01°) |
| OKLab | oklab(35.62% 0.0041 -0.0667) |
| OKLCH | oklch(35.62% 0.067 273.5) |
| XYZ | xyz(4.7947, 4.4052, 11.4219) |
| Luminance | 0.0440 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy Blue
#1B2A4A
ΔE00 5.75
Marine
#042E60
ΔE00 7.13
Marine Blue
#01386A
ΔE00 7.97
Darkslateblue
#483D8B
ΔE00 9.36
Twilight Blue
#0A437A
ΔE00 9.40
Dusk
#4E5481
ΔE00 9.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31395F #5F5731
analogous
#31505F #31395F #40315F
triadic
#31395F #5F3139 #395F31
tetradic
#31395F #5F3150 #5F5731 #315F40
square
#31395F #5F3150 #5F5731 #315F40
split-complementary
#31395F #5F4031 #505F31
monochromatic
#0A0C14 #1C2137 #31395F #465187 #5E6CAC
Accessibility & contrast
On white
11.16
#31395F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#31395F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31395F
11.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31395F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31395F | 1.00 | 11.16 | 1.88 | 11.16 |
| #FFFFFF | 11.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B3D61
Deuteranopia (green-blind)
#27395E
Tritanopia (blue-blind)
#214147
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #31395f; /* rgb */ color: rgb(49, 57, 95); /* oklch */ color: oklch(35.6% 0.067 273.5);
Tailwind
colors: {
custom: {
50: '#6c6f8c',
500: '#31395f',
950: '#000000',
},
}SCSS
$custom: #31395f; $custom-light: #6c6f8c; $custom-dark: #000000;
JSON
{
"hex": "#31395f",
"rgb": {
"r": 49,
"g": 57,
"b": 95
},
"hsl": {
"h": 229.565,
"s": 31.944,
"l": 28.235
},
"oklch": {
"l": 0.35616,
"c": 0.06686,
"h": 273.5
},
"luminance": 0.04405
}Semantic roles & 50–950 ramp
primary
#31395F
secondary
#90875C
accent
#B660C8
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07070C
muted
#7A7A7D