#31327C#31327C
#31327C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.123 H 277.8°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).
Color values
| HEX | #31327C |
|---|---|
| RGB | rgb(49, 50, 124) |
| HSL | hsl(239, 43%, 34%) |
| HSV | hsv(239, 60%, 49%) |
| CMYK | cmyk(60.5%, 59.7%, 0%, 51.4%) |
| CIE-LAB | lab(24.92, 23.20, -42.37) |
| CIE-LCH | lch(24.92, 48.30, 298.71°) |
| OKLab | oklab(36.21% 0.0166 -0.1216) |
| OKLCH | oklch(36.21% 0.123 277.8) |
| XYZ | xyz(6.0442, 4.3890, 19.5935) |
| Luminance | 0.0439 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.83
Blueberry
#464196
ΔE00 5.91
Midnight Blue
#191970
ΔE00 7.10
Sapphire (survey)
#2138AB
ΔE00 7.45
Marine
#042E60
ΔE00 7.95
Royal
#0C1793
ΔE00 8.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31327C #7C7B31
analogous
#31587C #31327C #56317C
triadic
#31327C #7C3132 #327C31
tetradic
#31327C #7C3158 #7C7B31 #317C56
square
#31327C #7C3158 #7C7B31 #317C56
split-complementary
#31327C #7C5631 #587C31
monochromatic
#0E0F24 #202050 #31327C #4244A8 #6566C2
Accessibility & contrast
On white
11.18
#31327C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#31327C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31327C
11.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31327C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31327C | 1.00 | 11.18 | 1.88 | 11.18 |
| #FFFFFF | 11.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #31327c; /* rgb */ color: rgb(49, 50, 124); /* oklch */ color: oklch(36.2% 0.123 277.8);
Tailwind
colors: {
custom: {
50: '#716aa2',
500: '#31327c',
950: '#000000',
},
}SCSS
$custom: #31327c; $custom-light: #716aa2; $custom-dark: #000000;
JSON
{
"hex": "#31327c",
"rgb": {
"r": 49,
"g": 50,
"b": 124
},
"hsl": {
"h": 239.2,
"s": 43.353,
"l": 33.922
},
"oklch": {
"l": 0.36206,
"c": 0.12271,
"h": 277.8
},
"luminance": 0.04389
}Semantic roles & 50–950 ramp
primary
#31327C
secondary
#AAA95F
accent
#D155D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F