#31338E#31338E
#31338E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.0% C 0.147 H 275.9°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).
Color values
| HEX | #31338E |
|---|---|
| RGB | rgb(49, 51, 142) |
| HSL | hsl(239, 49%, 37%) |
| HSV | hsv(239, 65%, 56%) |
| CMYK | cmyk(65.5%, 64.1%, 0%, 44.3%) |
| CIE-LAB | lab(26.66, 28.97, -50.79) |
| CIE-LCH | lch(26.66, 58.47, 299.70°) |
| OKLab | oklab(37.95% 0.015 -0.1463) |
| OKLCH | oklch(37.95% 0.147 275.9) |
| XYZ | xyz(7.3313, 4.9730, 26.1595) |
| Luminance | 0.0497 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.62
Darkslateblue
#483D8B
ΔE00 4.64
Blueberry
#464196
ΔE00 4.71
Royal
#0C1793
ΔE00 7.36
Ocean Blue
#4F42B5
ΔE00 7.78
Midnight Blue
#191970
ΔE00 7.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31338E #8E8C31
analogous
#31618E #31338E #5E318E
triadic
#31338E #8E3133 #338E31
tetradic
#31338E #8E3161 #8E8C31 #318E5E
square
#31338E #8E3161 #8E8C31 #318E5E
split-complementary
#31338E #8E5E31 #618E31
monochromatic
#121233 #212361 #31338E #4143BB #6D6FCD
Accessibility & contrast
On white
10.53
#31338E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#31338E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31338E
10.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31338E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31338E | 1.00 | 10.53 | 1.99 | 10.53 |
| #FFFFFF | 10.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #31338e; /* rgb */ color: rgb(49, 51, 142); /* oklch */ color: oklch(38.0% 0.147 275.9);
Tailwind
colors: {
custom: {
50: '#756bb0',
500: '#31338e',
950: '#000000',
},
}SCSS
$custom: #31338e; $custom-light: #756bb0; $custom-dark: #000000;
JSON
{
"hex": "#31338e",
"rgb": {
"r": 49,
"g": 51,
"b": 142
},
"hsl": {
"h": 238.71,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.37954,
"c": 0.14709,
"h": 275.9
},
"luminance": 0.04974
}Semantic roles & 50–950 ramp
primary
#31338E
secondary
#B4B267
accent
#D550D8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80