#5F54E1#5F54E1
#5F54E1 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 54.0% C 0.206 H 280.4°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).
Color values
| HEX | #5F54E1 |
|---|---|
| RGB | rgb(95, 84, 225) |
| HSL | hsl(245, 70%, 61%) |
| HSV | hsv(245, 63%, 88%) |
| CMYK | cmyk(57.8%, 62.7%, 0%, 11.8%) |
| CIE-LAB | lab(44.53, 43.63, -70.55) |
| CIE-LCH | lch(44.53, 82.95, 301.74°) |
| OKLab | oklab(54% 0.0374 -0.2029) |
| OKLCH | oklch(54% 0.206 280.4) |
| XYZ | xyz(21.4760, 14.2083, 72.8304) |
| Luminance | 0.1421 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.28
Slate Blue
#6A5ACD
ΔE00 3.53
Light Indigo
#6D5ACF
ΔE00 3.60
Dark Periwinkle
#665FD1
ΔE00 3.86
Iris
#6258C4
ΔE00 4.17
Purpleish Blue
#6140EF
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F54E1 #D6E154
analogous
#548FE1 #5F54E1 #A554E1
triadic
#5F54E1 #E15F54 #54E15F
tetradic
#5F54E1 #E1548F #D6E154 #54E1A5
square
#5F54E1 #E1548F #D6E154 #54E1A5
split-complementary
#5F54E1 #E1A554 #8FE154
monochromatic
#261C9F #3325D3 #5F54E1 #9088EA #C0BCF3
Accessibility & contrast
On white
5.47
#5F54E1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.84
#5F54E1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F54E1
5.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F54E1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F54E1 | 1.00 | 5.47 | 3.84 | 5.47 |
| #FFFFFF | 5.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FE5
Deuteranopia (green-blind)
#0064DE
Tritanopia (blue-blind)
#077793
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #5f54e1; /* rgb */ color: rgb(95, 84, 225); /* oklch */ color: oklch(54.0% 0.206 280.4);
Tailwind
colors: {
custom: {
50: '#9885eb',
500: '#5f54e1',
950: '#000000',
},
}SCSS
$custom: #5f54e1; $custom-light: #9885eb; $custom-dark: #000000;
JSON
{
"hex": "#5f54e1",
"rgb": {
"r": 95,
"g": 84,
"b": 225
},
"hsl": {
"h": 244.681,
"s": 70.149,
"l": 60.588
},
"oklch": {
"l": 0.53999,
"c": 0.2063,
"h": 280.4
},
"luminance": 0.1421
}Semantic roles & 50–950 ramp
primary
#5F54E1
secondary
#DFE3AE
accent
#D213C3
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84