#31509C#31509C
#31509C is a dark, vivid blue. Relative luminance 0.088; OKLCH L 45.0% C 0.129 H 265.0°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).
Color values
| HEX | #31509C |
|---|---|
| RGB | rgb(49, 80, 156) |
| HSL | hsl(223, 52%, 40%) |
| HSV | hsv(223, 69%, 61%) |
| CMYK | cmyk(68.6%, 48.7%, 0%, 38.8%) |
| CIE-LAB | lab(35.58, 14.78, -44.89) |
| CIE-LCH | lch(35.58, 47.26, 288.23°) |
| OKLab | oklab(44.98% -0.0113 -0.1286) |
| OKLCH | oklch(44.98% 0.129 265) |
| XYZ | xyz(10.1339, 8.7896, 32.6085) |
| Luminance | 0.0879 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.43
Dusk Blue
#26538D
ΔE00 3.73
Denim Blue
#3B5B92
ΔE00 4.07
Cobalt
#0047AB
ΔE00 4.08
Sapphire
#0F52BA
ΔE00 4.23
Light Navy Blue
#2E5A88
ΔE00 5.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31509C #9C7D31
analogous
#31859C #31509C #48319C
triadic
#31509C #9C3150 #509C31
tetradic
#31509C #9C3185 #9C7D31 #319C48
square
#31509C #9C3185 #9C7D31 #319C48
split-complementary
#31509C #9C4831 #859C31
monochromatic
#14203F #22386D #31509C #456AC5 #7490D3
Accessibility & contrast
On white
7.61
#31509C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#31509C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31509C
7.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31509C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31509C | 1.00 | 7.61 | 2.76 | 7.61 |
| #FFFFFF | 7.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#28599F
Deuteranopia (green-blind)
#0E4F9A
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #31509c; /* rgb */ color: rgb(49, 80, 156); /* oklch */ color: oklch(45.0% 0.129 265.0);
Tailwind
colors: {
custom: {
50: '#7680ba',
500: '#31509c',
950: '#000000',
},
}SCSS
$custom: #31509c; $custom-light: #7680ba; $custom-dark: #000000;
JSON
{
"hex": "#31509c",
"rgb": {
"r": 49,
"g": 80,
"b": 156
},
"hsl": {
"h": 222.617,
"s": 52.195,
"l": 40.196
},
"oklch": {
"l": 0.44977,
"c": 0.12911,
"h": 265
},
"luminance": 0.08791
}Semantic roles & 50–950 ramp
primary
#31509C
secondary
#BBA56D
accent
#B24CDC
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80