#5F5CDB#5F5CDB
#5F5CDB is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.9% C 0.189 H 279.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #5F5CDB |
|---|---|
| RGB | rgb(95, 92, 219) |
| HSL | hsl(241, 64%, 61%) |
| HSV | hsv(241, 58%, 86%) |
| CMYK | cmyk(56.6%, 58%, 0%, 14.1%) |
| CIE-LAB | lab(45.91, 37.00, -64.90) |
| CIE-LCH | lch(45.91, 74.70, 299.69°) |
| OKLab | oklab(54.87% 0.0303 -0.1862) |
| OKLCH | oklch(54.87% 0.189 279.2) |
| XYZ | xyz(21.3286, 15.2002, 68.8141) |
| Luminance | 0.1520 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 1.92
Slate Blue
#6A5ACD
ΔE00 2.90
Warm Blue
#4B57DB
ΔE00 3.04
Light Indigo
#6D5ACF
ΔE00 3.12
Iris
#6258C4
ΔE00 3.61
Azul
#1D5DEC
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F5CDB #D8DB5C
analogous
#5C98DB #5F5CDB #9E5CDB
triadic
#5F5CDB #DB5F5C #5CDB5F
tetradic
#5F5CDB #DB5C98 #D8DB5C #5CDB9E
square
#5F5CDB #DB5C98 #D8DB5C #5CDB9E
split-complementary
#5F5CDB #DB9E5C #98DB5C
monochromatic
#25229A #312DCD #5F5CDB #908EE6 #C1C0F1
Accessibility & contrast
On white
5.20
#5F5CDB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#5F5CDB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F5CDB
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F5CDB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F5CDB | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#0068D8
Tritanopia (blue-blind)
#177A93
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #5f5cdb; /* rgb */ color: rgb(95, 92, 219); /* oklch */ color: oklch(54.9% 0.189 279.2);
Tailwind
colors: {
custom: {
50: '#978ae7',
500: '#5f5cdb',
950: '#000000',
},
}SCSS
$custom: #5f5cdb; $custom-light: #978ae7; $custom-dark: #000000;
JSON
{
"hex": "#5f5cdb",
"rgb": {
"r": 95,
"g": 92,
"b": 219
},
"hsl": {
"h": 241.417,
"s": 63.819,
"l": 60.98
},
"oklch": {
"l": 0.5487,
"c": 0.18867,
"h": 279.2
},
"luminance": 0.15202
}Semantic roles & 50–950 ramp
primary
#5F5CDB
secondary
#E0E1B1
accent
#CC1AC7
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84