#5145B1#5145B1
#5145B1 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.6% C 0.165 H 282.9°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).
Color values
| HEX | #5145B1 |
|---|---|
| RGB | rgb(81, 69, 177) |
| HSL | hsl(247, 44%, 48%) |
| HSV | hsv(247, 61%, 69%) |
| CMYK | cmyk(54.2%, 61%, 0%, 30.6%) |
| CIE-LAB | lab(36.33, 35.04, -56.12) |
| CIE-LCH | lch(36.33, 66.16, 301.98°) |
| OKLab | oklab(46.56% 0.037 -0.1609) |
| OKLCH | oklch(46.56% 0.165 282.9) |
| XYZ | xyz(13.4548, 9.1791, 42.6492) |
| Luminance | 0.0918 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 1.08
Blue With A Hint Of Purple
#533CC6
ΔE00 3.86
Bluey Purple
#6241C7
ΔE00 4.40
Blueberry
#464196
ΔE00 4.56
Blurple
#5539CC
ΔE00 4.89
Blue Blue
#2242C7
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5145B1 #A5B145
analogous
#456FB1 #5145B1 #8745B1
triadic
#5145B1 #B15145 #45B151
tetradic
#5145B1 #B1456F #A5B145 #45B187
square
#5145B1 #B1456F #A5B145 #45B187
split-complementary
#5145B1 #B18745 #6FB145
monochromatic
#292359 #3D3485 #5145B1 #776DC6 #A099D7
Accessibility & contrast
On white
7.40
#5145B1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#5145B1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5145B1
7.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5145B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5145B1 | 1.00 | 7.40 | 2.84 | 7.40 |
| #FFFFFF | 7.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B5
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#275F74
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #5145b1; /* rgb */ color: rgb(81, 69, 177); /* oklch */ color: oklch(46.6% 0.165 282.9);
Tailwind
colors: {
custom: {
50: '#8a79c9',
500: '#5145b1',
950: '#000000',
},
}SCSS
$custom: #5145b1; $custom-light: #8a79c9; $custom-dark: #000000;
JSON
{
"hex": "#5145b1",
"rgb": {
"r": 81,
"g": 69,
"b": 177
},
"hsl": {
"h": 246.667,
"s": 43.902,
"l": 48.235
},
"oklch": {
"l": 0.46564,
"c": 0.16513,
"h": 282.9
},
"luminance": 0.0918
}Semantic roles & 50–950 ramp
primary
#5145B1
secondary
#BDC38E
accent
#D454C5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0913
muted
#7D7B82