#5145C2#5145C2
#5145C2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 48.0% C 0.187 H 281.0°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).
Color values
| HEX | #5145C2 |
|---|---|
| RGB | rgb(81, 69, 194) |
| HSL | hsl(246, 51%, 52%) |
| HSV | hsv(246, 64%, 76%) |
| CMYK | cmyk(58.2%, 64.4%, 0%, 23.9%) |
| CIE-LAB | lab(37.66, 40.43, -63.95) |
| CIE-LCH | lch(37.66, 75.66, 302.30°) |
| OKLab | oklab(47.96% 0.0357 -0.1839) |
| OKLCH | oklch(47.96% 0.187 281) |
| XYZ | xyz(15.2560, 9.8996, 52.1354) |
| Luminance | 0.0990 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 2.03
Blue With A Hint Of Purple
#533CC6
ΔE00 2.43
Bluey Purple
#6241C7
ΔE00 3.05
Blurple
#5539CC
ΔE00 3.31
Blue Blue
#2242C7
ΔE00 4.98
Iris
#6258C4
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5145C2 #B6C245
analogous
#4578C2 #5145C2 #9045C2
triadic
#5145C2 #C25145 #45C251
tetradic
#5145C2 #C24578 #B6C245 #45C290
square
#5145C2 #C24578 #B6C245 #45C290
split-complementary
#5145C2 #C29045 #78C245
monochromatic
#2A236A #3C3298 #5145C2 #7C73D1 #A7A1E0
Accessibility & contrast
On white
7.05
#5145C2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#5145C2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5145C2
7.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5145C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5145C2 | 1.00 | 7.05 | 2.98 | 7.05 |
| #FFFFFF | 7.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#08647D
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #5145c2; /* rgb */ color: rgb(81, 69, 194); /* oklch */ color: oklch(48.0% 0.187 281.0);
Tailwind
colors: {
custom: {
50: '#8d79d5',
500: '#5145c2',
950: '#000000',
},
}SCSS
$custom: #5145c2; $custom-light: #8d79d5; $custom-dark: #000000;
JSON
{
"hex": "#5145c2",
"rgb": {
"r": 81,
"g": 69,
"b": 194
},
"hsl": {
"h": 245.76,
"s": 50.607,
"l": 51.569
},
"oklch": {
"l": 0.47956,
"c": 0.18739,
"h": 281
},
"luminance": 0.09901
}Semantic roles & 50–950 ramp
primary
#5145C2
secondary
#C8CD96
accent
#DA4ECD
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83