#5F54CE#5F54CE
#5F54CE is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.5% C 0.182 H 282.2°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #5F54CE |
|---|---|
| RGB | rgb(95, 84, 206) |
| HSL | hsl(245, 55%, 57%) |
| HSV | hsv(245, 59%, 81%) |
| CMYK | cmyk(53.9%, 59.2%, 0%, 19.2%) |
| CIE-LAB | lab(43.11, 37.73, -62.00) |
| CIE-LCH | lch(43.11, 72.57, 301.32°) |
| OKLab | oklab(52.51% 0.0385 -0.1777) |
| OKLCH | oklch(52.51% 0.182 282.2) |
| XYZ | xyz(19.0268, 13.2286, 59.9313) |
| Luminance | 0.1323 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 1.94
Slate Blue
#6A5ACD
ΔE00 2.48
Light Indigo
#6D5ACF
ΔE00 2.89
Dark Periwinkle
#665FD1
ΔE00 3.48
Warm Blue
#4B57DB
ΔE00 3.56
Bluey Purple
#6241C7
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F54CE #C3CE54
analogous
#5486CE #5F54CE #9C54CE
triadic
#5F54CE #CE5F54 #54CE5F
tetradic
#5F54CE #CE5486 #C3CE54 #54CE9C
square
#5F54CE #CE5486 #C3CE54 #54CE9C
split-complementary
#5F54CE #CE9C54 #86CE54
monochromatic
#2E2582 #3E33B2 #5F54CE #8C84DC #B8B3E9
Accessibility & contrast
On white
5.76
#5F54CE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#5F54CE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F54CE
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F54CE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F54CE | 1.00 | 5.76 | 3.65 | 5.76 |
| #FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AD2
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#2D7189
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #5f54ce; /* rgb */ color: rgb(95, 84, 206); /* oklch */ color: oklch(52.5% 0.182 282.2);
Tailwind
colors: {
custom: {
50: '#9584de',
500: '#5f54ce',
950: '#000000',
},
}SCSS
$custom: #5f54ce; $custom-light: #9584de; $custom-dark: #000000;
JSON
{
"hex": "#5f54ce",
"rgb": {
"r": 95,
"g": 84,
"b": 206
},
"hsl": {
"h": 245.41,
"s": 55.455,
"l": 56.863
},
"oklch": {
"l": 0.52508,
"c": 0.18186,
"h": 282.2
},
"luminance": 0.1323
}Semantic roles & 50–950 ramp
primary
#5F54CE
secondary
#D3D8A6
accent
#DF49D1
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83