#31479F#31479F
#31479F is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.3% C 0.145 H 269.0°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).
Color values
| HEX | #31479F |
|---|---|
| RGB | rgb(49, 71, 159) |
| HSL | hsl(228, 53%, 41%) |
| HSV | hsv(228, 69%, 62%) |
| CMYK | cmyk(69.2%, 55.3%, 0%, 37.6%) |
| CIE-LAB | lab(33.27, 21.90, -50.42) |
| CIE-LCH | lch(33.27, 54.97, 293.48°) |
| OKLab | oklab(43.29% -0.0026 -0.145) |
| OKLCH | oklch(43.29% 0.145 269) |
| XYZ | xyz(9.7757, 7.6617, 33.7578) |
| Luminance | 0.0766 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.57
Cobalt (survey)
#1E488F
ΔE00 4.13
Blueberry
#464196
ΔE00 4.87
Sapphire (survey)
#2138AB
ΔE00 5.13
Sapphire
#0F52BA
ΔE00 5.72
Blue Blue
#2242C7
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31479F #9F8931
analogous
#317E9F #31479F #52319F
triadic
#31479F #9F3147 #479F31
tetradic
#31479F #9F317E #9F8931 #319F52
square
#31479F #9F317E #9F8931 #319F52
split-complementary
#31479F #9F5231 #7E9F31
monochromatic
#141D41 #233270 #31479F #4760C6 #7689D5
Accessibility & contrast
On white
8.29
#31479F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.53
#31479F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31479F
8.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31479F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31479F | 1.00 | 8.29 | 2.53 | 8.29 |
| #FFFFFF | 8.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #31479f; /* rgb */ color: rgb(49, 71, 159); /* oklch */ color: oklch(43.3% 0.145 269.0);
Tailwind
colors: {
custom: {
50: '#7779bc',
500: '#31479f',
950: '#000000',
},
}SCSS
$custom: #31479f; $custom-light: #7779bc; $custom-dark: #000000;
JSON
{
"hex": "#31479f",
"rgb": {
"r": 49,
"g": 71,
"b": 159
},
"hsl": {
"h": 228,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.43294,
"c": 0.14504,
"h": 269
},
"luminance": 0.07663
}Semantic roles & 50–950 ramp
primary
#31479F
secondary
#BDAD6F
accent
#BF4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0912
muted
#7C7B81