#31339F#31339F
#31339F is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.5% C 0.170 H 274.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).
Color values
| HEX | #31339F |
|---|---|
| RGB | rgb(49, 51, 159) |
| HSL | hsl(239, 53%, 41%) |
| HSV | hsv(239, 69%, 62%) |
| CMYK | cmyk(69.2%, 67.9%, 0%, 37.6%) |
| CIE-LAB | lab(28.18, 34.98, -58.72) |
| CIE-LCH | lch(28.18, 68.35, 300.78°) |
| OKLab | oklab(39.53% 0.0135 -0.1696) |
| OKLCH | oklch(39.53% 0.17 274.6) |
| XYZ | xyz(8.7064, 5.5230, 33.4014) |
| Luminance | 0.0552 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.74
Blueberry
#464196
ΔE00 5.07
Darkslateblue
#483D8B
ΔE00 5.81
Ocean Blue
#4F42B5
ΔE00 6.16
Indigo Blue
#3A18B1
ΔE00 6.48
Blue Blue
#2242C7
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31339F #9F9D31
analogous
#316A9F #31339F #66319F
triadic
#31339F #9F3133 #339F31
tetradic
#31339F #9F316A #9F9D31 #319F66
square
#31339F #9F316A #9F9D31 #319F66
split-complementary
#31339F #9F6631 #6A9F31
monochromatic
#141541 #232470 #31339F #4749C6 #7677D5
Accessibility & contrast
On white
9.98
#31339F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#31339F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31339F
9.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31339F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31339F | 1.00 | 9.98 | 2.10 | 9.98 |
| #FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #31339f; /* rgb */ color: rgb(49, 51, 159); /* oklch */ color: oklch(39.5% 0.170 274.6);
Tailwind
colors: {
custom: {
50: '#786bbc',
500: '#31339f',
950: '#000000',
},
}SCSS
$custom: #31339f; $custom-light: #786bbc; $custom-dark: #000000;
JSON
{
"hex": "#31339f",
"rgb": {
"r": 49,
"g": 51,
"b": 159
},
"hsl": {
"h": 238.909,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.39529,
"c": 0.17013,
"h": 274.6
},
"luminance": 0.05524
}Semantic roles & 50–950 ramp
primary
#31339F
secondary
#BDBB6F
accent
#DA4CDC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81