#51478F#51478F
#51478F is a dark, moderate blue. Relative luminance 0.082; OKLCH L 44.4% C 0.115 H 287.1°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).
Color values
| HEX | #51478F |
|---|---|
| RGB | rgb(81, 71, 143) |
| HSL | hsl(248, 34%, 42%) |
| HSV | hsv(248, 50%, 56%) |
| CMYK | cmyk(43.4%, 50.3%, 0%, 43.9%) |
| CIE-LAB | lab(34.47, 23.13, -38.64) |
| CIE-LCH | lch(34.47, 45.04, 300.90°) |
| OKLab | oklab(44.44% 0.0338 -0.1096) |
| OKLCH | oklch(44.44% 0.115 287.1) |
| XYZ | xyz(10.6031, 8.2386, 27.0128) |
| Luminance | 0.0824 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.21
Blueberry
#464196
ΔE00 3.31
Twilight
#4E518B
ΔE00 4.21
Dusk
#4E5481
ΔE00 6.55
Ocean Blue
#4F42B5
ΔE00 6.85
Rebeccapurple
#663399
ΔE00 8.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51478F #858F47
analogous
#47618F #51478F #75478F
triadic
#51478F #8F5147 #478F51
tetradic
#51478F #8F4761 #858F47 #478F75
square
#51478F #8F4761 #858F47 #478F75
split-complementary
#51478F #8F7547 #618F47
monochromatic
#231E3D #3A3366 #51478F #6D62B1 #938BC5
Accessibility & contrast
On white
7.93
#51478F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.65
#51478F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51478F
7.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51478F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51478F | 1.00 | 7.93 | 2.65 | 7.93 |
| #FFFFFF | 7.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#295392
Deuteranopia (green-blind)
#294F8D
Tritanopia (blue-blind)
#3F5664
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #51478f; /* rgb */ color: rgb(81, 71, 143); /* oklch */ color: oklch(44.4% 0.115 287.1);
Tailwind
colors: {
custom: {
50: '#857ab0',
500: '#51478f',
950: '#000000',
},
}SCSS
$custom: #51478f; $custom-light: #857ab0; $custom-dark: #000000;
JSON
{
"hex": "#51478f",
"rgb": {
"r": 81,
"g": 71,
"b": 143
},
"hsl": {
"h": 248.333,
"s": 33.645,
"l": 41.961
},
"oklch": {
"l": 0.44442,
"c": 0.11466,
"h": 287.1
},
"luminance": 0.08239
}Semantic roles & 50–950 ramp
primary
#51478F
secondary
#AAB181
accent
#CA5EBB
background
#F8F7FA
surface
#F0EDF5
border
#CBC8CF
text
#0B0910
muted
#7C7B7F