#5145C0#5145C0
#5145C0 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.8% C 0.185 H 281.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).
Color values
| HEX | #5145C0 |
|---|---|
| RGB | rgb(81, 69, 192) |
| HSL | hsl(246, 49%, 51%) |
| HSV | hsv(246, 64%, 75%) |
| CMYK | cmyk(57.8%, 64.1%, 0%, 24.7%) |
| CIE-LAB | lab(37.50, 39.80, -63.04) |
| CIE-LCH | lch(37.50, 74.55, 302.26°) |
| OKLab | oklab(47.79% 0.0359 -0.1813) |
| OKLCH | oklch(47.79% 0.185 281.2) |
| XYZ | xyz(15.0329, 9.8103, 50.9604) |
| Luminance | 0.0981 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 1.78
Blue With A Hint Of Purple
#533CC6
ΔE00 2.51
Bluey Purple
#6241C7
ΔE00 3.14
Blurple
#5539CC
ΔE00 3.44
Blue Blue
#2242C7
ΔE00 5.01
Iris
#6258C4
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5145C0 #B4C045
analogous
#4576C0 #5145C0 #8E45C0
triadic
#5145C0 #C05145 #45C051
tetradic
#5145C0 #C04576 #B4C045 #45C08E
square
#5145C0 #C04576 #B4C045 #45C08E
split-complementary
#5145C0 #C08E45 #76C045
monochromatic
#2A2368 #3C3395 #5145C0 #7C73CF #A7A0DF
Accessibility & contrast
On white
7.09
#5145C0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#5145C0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5145C0
7.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5145C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5145C0 | 1.00 | 7.09 | 2.96 | 7.09 |
| #FFFFFF | 7.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DC4
Deuteranopia (green-blind)
#0054BE
Tritanopia (blue-blind)
#0E647C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #5145c0; /* rgb */ color: rgb(81, 69, 192); /* oklch */ color: oklch(47.8% 0.185 281.2);
Tailwind
colors: {
custom: {
50: '#8d79d4',
500: '#5145c0',
950: '#000000',
},
}SCSS
$custom: #5145c0; $custom-light: #8d79d4; $custom-dark: #000000;
JSON
{
"hex": "#5145c0",
"rgb": {
"r": 81,
"g": 69,
"b": 192
},
"hsl": {
"h": 245.854,
"s": 49.398,
"l": 51.176
},
"oklch": {
"l": 0.47788,
"c": 0.18481,
"h": 281.2
},
"luminance": 0.09811
}Semantic roles & 50–950 ramp
primary
#5145C0
secondary
#C6CC95
accent
#D94FCB
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83