#5F5FDD#5F5FDD
#5F5FDD is a mid, vivid blue. Relative luminance 0.158; OKLCH L 55.5% C 0.187 H 278.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #5F5FDD |
|---|---|
| RGB | rgb(95, 95, 221) |
| HSL | hsl(240, 65%, 62%) |
| HSV | hsv(240, 57%, 87%) |
| CMYK | cmyk(57%, 57%, 0%, 13.3%) |
| CIE-LAB | lab(46.76, 35.82, -64.65) |
| CIE-LCH | lch(46.76, 73.91, 298.99°) |
| OKLab | oklab(55.55% 0.0273 -0.1855) |
| OKLCH | oklch(55.55% 0.187 278.4) |
| XYZ | xyz(21.8585, 15.8363, 70.2975) |
| Luminance | 0.1584 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.02
Slate Blue
#6A5ACD
ΔE00 3.51
Warm Blue
#4B57DB
ΔE00 3.53
Light Indigo
#6D5ACF
ΔE00 3.69
Iris
#6258C4
ΔE00 4.31
Mediumslateblue
#7B68EE
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F5FDD #DDDD5F
analogous
#5F9EDD #5F5FDD #9E5FDD
triadic
#5F5FDD #DD5F5F #5FDD5F
tetradic
#5F5FDD #DD5F9E #DDDD5F #5FDD9E
square
#5F5FDD #DD5F9E #DDDD5F #5FDD9E
split-complementary
#5F5FDD #DD9E5F #9EDD5F
monochromatic
#2222A0 #2D2DD2 #5F5FDD #9191E8 #C4C4F2
Accessibility & contrast
On white
5.04
#5F5FDD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#5F5FDD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F5FDD
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F5FDD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F5FDD | 1.00 | 5.04 | 4.17 | 5.04 |
| #FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074E1
Deuteranopia (green-blind)
#006ADA
Tritanopia (blue-blind)
#117D95
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #5f5fdd; /* rgb */ color: rgb(95, 95, 221); /* oklch */ color: oklch(55.5% 0.187 278.4);
Tailwind
colors: {
custom: {
50: '#978ce8',
500: '#5f5fdd',
950: '#000000',
},
}SCSS
$custom: #5f5fdd; $custom-light: #978ce8; $custom-dark: #000000;
JSON
{
"hex": "#5f5fdd",
"rgb": {
"r": 95,
"g": 95,
"b": 221
},
"hsl": {
"h": 240,
"s": 64.948,
"l": 61.961
},
"oklch": {
"l": 0.55545,
"c": 0.18749,
"h": 278.4
},
"luminance": 0.15838
}Semantic roles & 50–950 ramp
primary
#5F5FDD
secondary
#E3E3B5
accent
#CD19CD
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84