#31346F#31346F
#31346F is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.6% C 0.100 H 277.8°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).
Color values
| HEX | #31346F |
|---|---|
| RGB | rgb(49, 52, 111) |
| HSL | hsl(237, 39%, 31%) |
| HSV | hsv(237, 56%, 44%) |
| CMYK | cmyk(55.9%, 53.2%, 0%, 56.5%) |
| CIE-LAB | lab(24.50, 17.20, -34.77) |
| CIE-LCH | lch(24.50, 38.79, 296.32°) |
| OKLab | oklab(35.59% 0.0136 -0.0992) |
| OKLCH | oklch(35.59% 0.1 277.8) |
| XYZ | xyz(5.3630, 4.2563, 15.5748) |
| Luminance | 0.0426 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.07
Marine
#042E60
ΔE00 6.94
Blueberry
#464196
ΔE00 7.41
Navy Blue
#1B2A4A
ΔE00 7.79
Marine Blue
#01386A
ΔE00 8.32
Midnight Blue
#191970
ΔE00 8.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31346F #6F6C31
analogous
#31536F #31346F #4D316F
triadic
#31346F #6F3134 #346F31
tetradic
#31346F #6F3153 #6F6C31 #316F4D
square
#31346F #6F3153 #6F6C31 #316F4D
split-complementary
#31346F #6F4D31 #536F31
monochromatic
#0C0C1A #1E2045 #31346F #444899 #6165B9
Accessibility & contrast
On white
11.34
#31346F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#31346F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31346F
11.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31346F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31346F | 1.00 | 11.34 | 1.85 | 11.34 |
| #FFFFFF | 11.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#163D71
Deuteranopia (green-blind)
#0F386E
Tritanopia (blue-blind)
#15414C
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #31346f; /* rgb */ color: rgb(49, 52, 111); /* oklch */ color: oklch(35.6% 0.100 277.8);
Tailwind
colors: {
custom: {
50: '#6e6b99',
500: '#31346f',
950: '#000000',
},
}SCSS
$custom: #31346f; $custom-light: #6e6b99; $custom-dark: #000000;
JSON
{
"hex": "#31346f",
"rgb": {
"r": 49,
"g": 52,
"b": 111
},
"hsl": {
"h": 237.097,
"s": 38.75,
"l": 31.373
},
"oklch": {
"l": 0.35587,
"c": 0.10014,
"h": 277.8
},
"luminance": 0.04257
}Semantic roles & 50–950 ramp
primary
#31346F
secondary
#A09D5C
accent
#C959CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E