#31339E#31339E
#31339E is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.4% C 0.169 H 274.6°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).
Color values
| HEX | #31339E |
|---|---|
| RGB | rgb(49, 51, 158) |
| HSL | hsl(239, 53%, 41%) |
| HSV | hsv(239, 69%, 62%) |
| CMYK | cmyk(69%, 67.7%, 0%, 38%) |
| CIE-LAB | lab(28.08, 34.63, -58.26) |
| CIE-LCH | lch(28.08, 67.78, 300.72°) |
| OKLab | oklab(39.43% 0.0137 -0.1682) |
| OKLCH | oklch(39.43% 0.169 274.6) |
| XYZ | xyz(8.6200, 5.4885, 32.9462) |
| Luminance | 0.0549 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.81
Blueberry
#464196
ΔE00 5.02
Darkslateblue
#483D8B
ΔE00 5.72
Ocean Blue
#4F42B5
ΔE00 6.23
Indigo Blue
#3A18B1
ΔE00 6.56
Blue Blue
#2242C7
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31339E #9E9C31
analogous
#31699E #31339E #65319E
triadic
#31339E #9E3133 #339E31
tetradic
#31339E #9E3169 #9E9C31 #319E65
square
#31339E #9E3169 #9E9C31 #319E65
split-complementary
#31339E #9E6531 #699E31
monochromatic
#141541 #23246F #31339E #4649C6 #7577D4
Accessibility & contrast
On white
10.01
#31339E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#31339E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31339E
10.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31339E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31339E | 1.00 | 10.01 | 2.10 | 10.01 |
| #FFFFFF | 10.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #31339e; /* rgb */ color: rgb(49, 51, 158); /* oklch */ color: oklch(39.4% 0.169 274.6);
Tailwind
colors: {
custom: {
50: '#786bbc',
500: '#31339e',
950: '#000000',
},
}SCSS
$custom: #31339e; $custom-light: #786bbc; $custom-dark: #000000;
JSON
{
"hex": "#31339e",
"rgb": {
"r": 49,
"g": 51,
"b": 158
},
"hsl": {
"h": 238.899,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.39434,
"c": 0.1688,
"h": 274.6
},
"luminance": 0.05489
}Semantic roles & 50–950 ramp
primary
#31339E
secondary
#BCBB6E
accent
#D94CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81