#5145C1#5145C1
#5145C1 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.9% C 0.186 H 281.1°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).
Color values
| HEX | #5145C1 |
|---|---|
| RGB | rgb(81, 69, 193) |
| HSL | hsl(246, 50%, 51%) |
| HSV | hsv(246, 64%, 76%) |
| CMYK | cmyk(58%, 64.2%, 0%, 24.3%) |
| CIE-LAB | lab(37.58, 40.11, -63.49) |
| CIE-LCH | lch(37.58, 75.10, 302.28°) |
| OKLab | oklab(47.87% 0.0358 -0.1826) |
| OKLCH | oklch(47.87% 0.186 281.1) |
| XYZ | xyz(15.1441, 9.8548, 51.5459) |
| Luminance | 0.0986 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 1.91
Blue With A Hint Of Purple
#533CC6
ΔE00 2.46
Bluey Purple
#6241C7
ΔE00 3.09
Blurple
#5539CC
ΔE00 3.37
Blue Blue
#2242C7
ΔE00 4.99
Iris
#6258C4
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5145C1 #B5C145
analogous
#4577C1 #5145C1 #8F45C1
triadic
#5145C1 #C15145 #45C151
tetradic
#5145C1 #C14577 #B5C145 #45C18F
square
#5145C1 #C14577 #B5C145 #45C18F
split-complementary
#5145C1 #C18F45 #77C145
monochromatic
#2A2369 #3C3297 #5145C1 #7C73D0 #A7A1E0
Accessibility & contrast
On white
7.07
#5145C1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#5145C1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5145C1
7.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5145C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5145C1 | 1.00 | 7.07 | 2.97 | 7.07 |
| #FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DC5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#0B647D
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #5145c1; /* rgb */ color: rgb(81, 69, 193); /* oklch */ color: oklch(47.9% 0.186 281.1);
Tailwind
colors: {
custom: {
50: '#8d79d5',
500: '#5145c1',
950: '#000000',
},
}SCSS
$custom: #5145c1; $custom-light: #8d79d5; $custom-dark: #000000;
JSON
{
"hex": "#5145c1",
"rgb": {
"r": 81,
"g": 69,
"b": 193
},
"hsl": {
"h": 245.806,
"s": 50,
"l": 51.373
},
"oklch": {
"l": 0.47872,
"c": 0.1861,
"h": 281.1
},
"luminance": 0.09856
}Semantic roles & 50–950 ramp
primary
#5145C1
secondary
#C7CC96
accent
#DA4ECC
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83