#31366C#31366C
#31366C is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.8% C 0.092 H 276.7°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).
Color values
| HEX | #31366C |
|---|---|
| RGB | rgb(49, 54, 108) |
| HSL | hsl(235, 38%, 31%) |
| HSV | hsv(235, 55%, 42%) |
| CMYK | cmyk(54.6%, 50%, 0%, 57.6%) |
| CIE-LAB | lab(24.87, 14.76, -32.25) |
| CIE-LCH | lch(24.87, 35.47, 294.59°) |
| OKLab | oklab(35.8% 0.0108 -0.0918) |
| OKLCH | oklch(35.8% 0.092 276.7) |
| XYZ | xyz(5.2917, 4.3737, 14.7498) |
| Luminance | 0.0437 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.62
Marine
#042E60
ΔE00 6.70
Navy Blue
#1B2A4A
ΔE00 7.30
Blueberry
#464196
ΔE00 7.87
Marine Blue
#01386A
ΔE00 7.92
Darkish Blue
#014182
ΔE00 8.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31366C #6C6731
analogous
#31536C #31366C #49316C
triadic
#31366C #6C3136 #366C31
tetradic
#31366C #6C3153 #6C6731 #316C49
square
#31366C #6C3153 #6C6731 #316C49
split-complementary
#31366C #6C4931 #536C31
monochromatic
#0B0C18 #1E2142 #31366C #444B96 #6068B7
Accessibility & contrast
On white
11.20
#31366C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#31366C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31366C
11.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31366C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31366C | 1.00 | 11.20 | 1.87 | 11.20 |
| #FFFFFF | 11.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E3D6E
Deuteranopia (green-blind)
#17396B
Tritanopia (blue-blind)
#18424B
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #31366c; /* rgb */ color: rgb(49, 54, 108); /* oklch */ color: oklch(35.8% 0.092 276.7);
Tailwind
colors: {
custom: {
50: '#6e6c96',
500: '#31366c',
950: '#000000',
},
}SCSS
$custom: #31366c; $custom-light: #6e6c96; $custom-dark: #000000;
JSON
{
"hex": "#31366c",
"rgb": {
"r": 49,
"g": 54,
"b": 108
},
"hsl": {
"h": 234.915,
"s": 37.58,
"l": 30.784
},
"oklch": {
"l": 0.358,
"c": 0.09243,
"h": 276.7
},
"luminance": 0.04374
}Semantic roles & 50–950 ramp
primary
#31366C
secondary
#9D985C
accent
#C45ACE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070D
muted
#7A7A7E