#5148C2#5148C2
#5148C2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.4% C 0.184 H 280.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).
Color values
| HEX | #5148C2 |
|---|---|
| RGB | rgb(81, 72, 194) |
| HSL | hsl(244, 50%, 52%) |
| HSV | hsv(244, 63%, 76%) |
| CMYK | cmyk(58.2%, 62.9%, 0%, 23.9%) |
| CIE-LAB | lab(38.34, 38.64, -62.85) |
| CIE-LCH | lch(38.34, 73.77, 301.58°) |
| OKLab | oklab(48.45% 0.033 -0.1807) |
| OKLCH | oklch(48.45% 0.184 280.3) |
| XYZ | xyz(15.4452, 10.2780, 52.1984) |
| Luminance | 0.1028 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 2.49
Blue With A Hint Of Purple
#533CC6
ΔE00 3.25
Bluey Purple
#6241C7
ΔE00 3.51
Blurple
#5539CC
ΔE00 4.09
Blue Blue
#2242C7
ΔE00 5.03
Iris
#6258C4
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5148C2 #B9C248
analogous
#487CC2 #5148C2 #8E48C2
triadic
#5148C2 #C25148 #48C251
tetradic
#5148C2 #C2487C #B9C248 #48C28E
square
#5148C2 #C2487C #B9C248 #48C28E
split-complementary
#5148C2 #C28E48 #7CC248
monochromatic
#29246C #3B339A #5148C2 #7D76D1 #A8A4E1
Accessibility & contrast
On white
6.87
#5148C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#5148C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5148C2
6.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5148C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5148C2 | 1.00 | 6.87 | 3.06 | 6.87 |
| #FFFFFF | 6.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#06667E
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #5148c2; /* rgb */ color: rgb(81, 72, 194); /* oklch */ color: oklch(48.4% 0.184 280.3);
Tailwind
colors: {
custom: {
50: '#8d7bd5',
500: '#5148c2',
950: '#000000',
},
}SCSS
$custom: #5148c2; $custom-light: #8d7bd5; $custom-dark: #000000;
JSON
{
"hex": "#5148c2",
"rgb": {
"r": 81,
"g": 72,
"b": 194
},
"hsl": {
"h": 244.426,
"s": 50,
"l": 52.157
},
"oklch": {
"l": 0.48448,
"c": 0.18369,
"h": 280.3
},
"luminance": 0.10279
}Semantic roles & 50–950 ramp
primary
#5148C2
secondary
#CACE98
accent
#DA4ECF
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0914
muted
#7E7B83