#31508E#31508E
#31508E is a dark, moderate blue. Relative luminance 0.083; OKLCH L 44.0% C 0.109 H 262.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).
Color values
| HEX | #31508E |
|---|---|
| RGB | rgb(49, 80, 142) |
| HSL | hsl(220, 49%, 37%) |
| HSV | hsv(220, 65%, 56%) |
| CMYK | cmyk(65.5%, 43.7%, 0%, 44.3%) |
| CIE-LAB | lab(34.69, 9.56, -37.83) |
| CIE-LCH | lch(34.69, 39.02, 284.18°) |
| OKLab | oklab(44.01% -0.0138 -0.1079) |
| OKLCH | oklch(44.01% 0.109 262.7) |
| XYZ | xyz(9.0161, 8.3424, 26.7211) |
| Luminance | 0.0834 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dusk Blue
#26538D
ΔE00 2.66
Cobalt (survey)
#1E488F
ΔE00 2.93
Denim Blue
#3B5B92
ΔE00 3.65
Light Navy Blue
#2E5A88
ΔE00 4.73
Light Navy
#155084
ΔE00 4.80
Cobalt
#0047AB
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31508E #8E6F31
analogous
#317F8E #31508E #41318E
triadic
#31508E #8E3150 #508E31
tetradic
#31508E #8E317F #8E6F31 #318E41
square
#31508E #8E317F #8E6F31 #318E41
split-complementary
#31508E #8E4131 #7F8E31
monochromatic
#121D33 #213661 #31508E #416ABB #6D8DCD
Accessibility & contrast
On white
7.87
#31508E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#31508E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31508E
7.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31508E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31508E | 1.00 | 7.87 | 2.67 | 7.87 |
| #FFFFFF | 7.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#335690
Deuteranopia (green-blind)
#254E8D
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #31508e; /* rgb */ color: rgb(49, 80, 142); /* oklch */ color: oklch(44.0% 0.109 262.7);
Tailwind
colors: {
custom: {
50: '#7380af',
500: '#31508e',
950: '#000000',
},
}SCSS
$custom: #31508e; $custom-light: #7380af; $custom-dark: #000000;
JSON
{
"hex": "#31508e",
"rgb": {
"r": 49,
"g": 80,
"b": 142
},
"hsl": {
"h": 220,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.44007,
"c": 0.10873,
"h": 262.7
},
"luminance": 0.08343
}Semantic roles & 50–950 ramp
primary
#31508E
secondary
#B49A67
accent
#AB50D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F