#5148C8#5148C8
#5148C8 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.9% C 0.191 H 279.8°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).
Color values
| HEX | #5148C8 |
|---|---|
| RGB | rgb(81, 72, 200) |
| HSL | hsl(244, 54%, 53%) |
| HSV | hsv(244, 64%, 78%) |
| CMYK | cmyk(59.5%, 64%, 0%, 21.6%) |
| CIE-LAB | lab(38.82, 40.56, -65.56) |
| CIE-LCH | lch(38.82, 77.09, 301.74°) |
| OKLab | oklab(48.95% 0.0325 -0.1887) |
| OKLCH | oklch(48.95% 0.191 279.8) |
| XYZ | xyz(16.1327, 10.5530, 55.8192) |
| Luminance | 0.1055 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 3.16
Blue With A Hint Of Purple
#533CC6
ΔE00 3.21
Bluey Purple
#6241C7
ΔE00 3.39
Blurple
#5539CC
ΔE00 3.89
Blue Blue
#2242C7
ΔE00 5.05
Iris
#6258C4
ΔE00 5.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5148C8 #BFC848
analogous
#487FC8 #5148C8 #9148C8
triadic
#5148C8 #C85148 #48C851
tetradic
#5148C8 #C8487F #BFC848 #48C891
square
#5148C8 #C8487F #BFC848 #48C891
split-complementary
#5148C8 #C89148 #7FC848
monochromatic
#282373 #3931A2 #5148C8 #7E77D6 #AAA6E4
Accessibility & contrast
On white
6.75
#5148C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.11
#5148C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5148C8
6.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5148C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5148C8 | 1.00 | 6.75 | 3.11 | 6.75 |
| #FFFFFF | 6.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#006881
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #5148c8; /* rgb */ color: rgb(81, 72, 200); /* oklch */ color: oklch(48.9% 0.191 279.8);
Tailwind
colors: {
custom: {
50: '#8e7cda',
500: '#5148c8',
950: '#000000',
},
}SCSS
$custom: #5148c8; $custom-light: #8e7cda; $custom-dark: #000000;
JSON
{
"hex": "#5148c8",
"rgb": {
"r": 81,
"g": 72,
"b": 200
},
"hsl": {
"h": 244.219,
"s": 53.782,
"l": 53.333
},
"oklch": {
"l": 0.48948,
"c": 0.19144,
"h": 279.8
},
"luminance": 0.10554
}Semantic roles & 50–950 ramp
primary
#5148C8
secondary
#CED19A
accent
#DD4BD3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0915
muted
#7E7B83