#31358F#31358F
#31358F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.4% C 0.146 H 275.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).
Color values
| HEX | #31358F |
|---|---|
| RGB | rgb(49, 53, 143) |
| HSL | hsl(237, 49%, 38%) |
| HSV | hsv(237, 66%, 56%) |
| CMYK | cmyk(65.7%, 62.9%, 0%, 43.9%) |
| CIE-LAB | lab(27.25, 28.01, -50.44) |
| CIE-LCH | lch(27.25, 57.70, 299.05°) |
| OKLab | oklab(38.41% 0.0132 -0.1453) |
| OKLCH | oklch(38.41% 0.146 275.2) |
| XYZ | xyz(7.4960, 5.1817, 26.5864) |
| Luminance | 0.0518 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.32
Sapphire (survey)
#2138AB
ΔE00 4.35
Darkslateblue
#483D8B
ΔE00 4.46
Ocean Blue
#4F42B5
ΔE00 7.52
Royal
#0C1793
ΔE00 7.89
Cobalt
#0047AB
ΔE00 8.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31358F #8F8B31
analogous
#31648F #31358F #5C318F
triadic
#31358F #8F3135 #358F31
tetradic
#31358F #8F3164 #8F8B31 #318F5C
square
#31358F #8F3164 #8F8B31 #318F5C
split-complementary
#31358F #8F5C31 #648F31
monochromatic
#121334 #212461 #31358F #4146BD #6D71CD
Accessibility & contrast
On white
10.31
#31358F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#31358F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31358F
10.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31358F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31358F | 1.00 | 10.31 | 2.04 | 10.31 |
| #FFFFFF | 10.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #31358f; /* rgb */ color: rgb(49, 53, 143); /* oklch */ color: oklch(38.4% 0.146 275.2);
Tailwind
colors: {
custom: {
50: '#756cb1',
500: '#31358f',
950: '#000000',
},
}SCSS
$custom: #31358f; $custom-light: #756cb1; $custom-dark: #000000;
JSON
{
"hex": "#31358f",
"rgb": {
"r": 49,
"g": 53,
"b": 143
},
"hsl": {
"h": 237.447,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.38413,
"c": 0.1459,
"h": 275.2
},
"luminance": 0.05182
}Semantic roles & 50–950 ramp
primary
#31358F
secondary
#B5B167
accent
#D34FD9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80