#5F5CDC#5F5CDC
#5F5CDC is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.9% C 0.190 H 279.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #5F5CDC |
|---|---|
| RGB | rgb(95, 92, 220) |
| HSL | hsl(241, 65%, 61%) |
| HSV | hsv(241, 58%, 86%) |
| CMYK | cmyk(56.8%, 58.2%, 0%, 13.7%) |
| CIE-LAB | lab(45.98, 37.32, -65.35) |
| CIE-LCH | lch(45.98, 75.25, 299.73°) |
| OKLab | oklab(54.95% 0.0302 -0.1876) |
| OKLCH | oklch(54.95% 0.19 279.2) |
| XYZ | xyz(21.4606, 15.2530, 69.5095) |
| Luminance | 0.1525 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.01
Slate Blue
#6A5ACD
ΔE00 2.98
Warm Blue
#4B57DB
ΔE00 3.06
Light Indigo
#6D5ACF
ΔE00 3.19
Iris
#6258C4
ΔE00 3.73
Mediumslateblue
#7B68EE
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F5CDC #D9DC5C
analogous
#5C99DC #5F5CDC #9F5CDC
triadic
#5F5CDC #DC5F5C #5CDC5F
tetradic
#5F5CDC #DC5C99 #D9DC5C #5CDC9F
square
#5F5CDC #DC5C99 #D9DC5C #5CDC9F
split-complementary
#5F5CDC #DC9F5C #99DC5C
monochromatic
#24229C #302CCE #5F5CDC #908EE7 #C2C1F2
Accessibility & contrast
On white
5.18
#5F5CDC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.05
#5F5CDC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F5CDC
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F5CDC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F5CDC | 1.00 | 5.18 | 4.05 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#0068D9
Tritanopia (blue-blind)
#157A93
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #5f5cdc; /* rgb */ color: rgb(95, 92, 220); /* oklch */ color: oklch(54.9% 0.190 279.2);
Tailwind
colors: {
custom: {
50: '#978ae8',
500: '#5f5cdc',
950: '#000000',
},
}SCSS
$custom: #5f5cdc; $custom-light: #978ae8; $custom-dark: #000000;
JSON
{
"hex": "#5f5cdc",
"rgb": {
"r": 95,
"g": 92,
"b": 220
},
"hsl": {
"h": 241.406,
"s": 64.646,
"l": 61.176
},
"oklch": {
"l": 0.54945,
"c": 0.18998,
"h": 279.2
},
"luminance": 0.15254
}Semantic roles & 50–950 ramp
primary
#5F5CDC
secondary
#E1E2B2
accent
#CC19C8
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84