#5F5CCC#5F5CCC
#5F5CCC is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.8% C 0.169 H 280.3°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #5F5CCC |
|---|---|
| RGB | rgb(95, 92, 204) |
| HSL | hsl(242, 52%, 58%) |
| HSV | hsv(242, 55%, 80%) |
| CMYK | cmyk(53.4%, 54.9%, 0%, 20%) |
| CIE-LAB | lab(44.87, 32.25, -58.00) |
| CIE-LCH | lch(44.87, 66.37, 299.08°) |
| OKLab | oklab(53.77% 0.0301 -0.1659) |
| OKLCH | oklch(53.77% 0.169 280.3) |
| XYZ | xyz(19.4422, 14.4456, 58.8788) |
| Luminance | 0.1445 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 1.63
Iris
#6258C4
ΔE00 1.91
Slate Blue
#6A5ACD
ΔE00 2.23
Light Indigo
#6D5ACF
ΔE00 2.78
Warm Blue
#4B57DB
ΔE00 3.53
Royal Blue
#4169E1
ΔE00 7.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F5CCC #C9CC5C
analogous
#5C91CC #5F5CCC #975CCC
triadic
#5F5CCC #CC5F5C #5CCC5F
tetradic
#5F5CCC #CC5C91 #C9CC5C #5CCC97
square
#5F5CCC #CC5C91 #C9CC5C #5CCC97
split-complementary
#5F5CCC #CC975C #91CC5C
monochromatic
#2C2984 #3B38B3 #5F5CCC #8D8BDB #BBB9E9
Accessibility & contrast
On white
5.40
#5F5CCC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#5F5CCC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F5CCC
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F5CCC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F5CCC | 1.00 | 5.40 | 3.89 | 5.40 |
| #FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#136ED0
Deuteranopia (green-blind)
#0066CA
Tritanopia (blue-blind)
#2E768B
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #5f5ccc; /* rgb */ color: rgb(95, 92, 204); /* oklch */ color: oklch(53.8% 0.169 280.3);
Tailwind
colors: {
custom: {
50: '#958adc',
500: '#5f5ccc',
950: '#000000',
},
}SCSS
$custom: #5f5ccc; $custom-light: #958adc; $custom-dark: #000000;
JSON
{
"hex": "#5f5ccc",
"rgb": {
"r": 95,
"g": 92,
"b": 204
},
"hsl": {
"h": 241.607,
"s": 52.336,
"l": 58.039
},
"oklch": {
"l": 0.53766,
"c": 0.16865,
"h": 280.3
},
"luminance": 0.14447
}Semantic roles & 50–950 ramp
primary
#5F5CCC
secondary
#D7D8AC
accent
#DC4CD8
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83