#31307E#31307E
#31307E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.128 H 278.3°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).
Color values
| HEX | #31307E |
|---|---|
| RGB | rgb(49, 48, 126) |
| HSL | hsl(241, 45%, 34%) |
| HSV | hsv(241, 62%, 49%) |
| CMYK | cmyk(61.1%, 61.9%, 0%, 50.6%) |
| CIE-LAB | lab(24.55, 25.26, -44.22) |
| CIE-LCH | lch(24.55, 50.92, 299.74°) |
| OKLab | oklab(35.99% 0.0186 -0.127) |
| OKLCH | oklch(35.99% 0.128 278.3) |
| XYZ | xyz(6.0883, 4.2728, 20.2385) |
| Luminance | 0.0427 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.96
Blueberry
#464196
ΔE00 6.04
Midnight Blue
#191970
ΔE00 6.51
Sapphire (survey)
#2138AB
ΔE00 7.22
Royal
#0C1793
ΔE00 7.88
Marine
#042E60
ΔE00 8.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31307E #7D7E30
analogous
#30567E #31307E #58307E
triadic
#31307E #7E3130 #307E31
tetradic
#31307E #7E3056 #7D7E30 #307E58
square
#31307E #7E3056 #7D7E30 #307E58
split-complementary
#31307E #7E5830 #567E30
monochromatic
#0F0E25 #201F52 #31307E #4241AA #6664C4
Accessibility & contrast
On white
11.32
#31307E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#31307E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31307E
11.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31307E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31307E | 1.00 | 11.32 | 1.85 | 11.32 |
| #FFFFFF | 11.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #31307e; /* rgb */ color: rgb(49, 48, 126); /* oklch */ color: oklch(36.0% 0.128 278.3);
Tailwind
colors: {
custom: {
50: '#7268a4',
500: '#31307e',
950: '#000000',
},
}SCSS
$custom: #31307e; $custom-light: #7268a4; $custom-dark: #000000;
JSON
{
"hex": "#31307e",
"rgb": {
"r": 49,
"g": 48,
"b": 126
},
"hsl": {
"h": 240.769,
"s": 44.828,
"l": 34.118
},
"oklch": {
"l": 0.35987,
"c": 0.12841,
"h": 278.3
},
"luminance": 0.04273
}Semantic roles & 50–950 ramp
primary
#31307E
secondary
#AAAB5F
accent
#D553D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F