#31336E#31336E
#31336E is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.3% C 0.100 H 278.5°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).
Color values
| HEX | #31336E |
|---|---|
| RGB | rgb(49, 51, 110) |
| HSL | hsl(238, 38%, 31%) |
| HSV | hsv(238, 55%, 43%) |
| CMYK | cmyk(55.5%, 53.6%, 0%, 56.9%) |
| CIE-LAB | lab(24.15, 17.53, -34.69) |
| CIE-LCH | lch(24.15, 38.87, 296.81°) |
| OKLab | oklab(35.3% 0.0148 -0.099) |
| OKLCH | oklch(35.3% 0.1 278.5) |
| XYZ | xyz(5.2640, 4.1461, 15.2717) |
| Luminance | 0.0415 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.19
Marine
#042E60
ΔE00 7.03
Blueberry
#464196
ΔE00 7.61
Navy Blue
#1B2A4A
ΔE00 7.74
Midnight Blue
#191970
ΔE00 8.24
Marine Blue
#01386A
ΔE00 8.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31336E #6E6C31
analogous
#31516E #31336E #4D316E
triadic
#31336E #6E3133 #336E31
tetradic
#31336E #6E3151 #6E6C31 #316E4D
square
#31336E #6E3151 #6E6C31 #316E4D
split-complementary
#31336E #6E4D31 #516E31
monochromatic
#0B0C19 #1E1F44 #31336E #444798 #6164B9
Accessibility & contrast
On white
11.48
#31336E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#31336E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31336E
11.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31336E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31336E | 1.00 | 11.48 | 1.83 | 11.48 |
| #FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#153C70
Deuteranopia (green-blind)
#0E376D
Tritanopia (blue-blind)
#16404B
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #31336e; /* rgb */ color: rgb(49, 51, 110); /* oklch */ color: oklch(35.3% 0.100 278.5);
Tailwind
colors: {
custom: {
50: '#6e6a98',
500: '#31336e',
950: '#000000',
},
}SCSS
$custom: #31336e; $custom-light: #6e6a98; $custom-dark: #000000;
JSON
{
"hex": "#31336e",
"rgb": {
"r": 49,
"g": 51,
"b": 110
},
"hsl": {
"h": 238.033,
"s": 38.365,
"l": 31.176
},
"oklch": {
"l": 0.35299,
"c": 0.1001,
"h": 278.5
},
"luminance": 0.04146
}Semantic roles & 50–950 ramp
primary
#31336E
secondary
#9F9D5C
accent
#CA59CE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E