#5F56BF#5F56BF
#5F56BF is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.8% C 0.159 H 283.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #5F56BF |
|---|---|
| RGB | rgb(95, 86, 191) |
| HSL | hsl(245, 45%, 54%) |
| HSV | hsv(245, 55%, 75%) |
| CMYK | cmyk(50.3%, 55%, 0%, 25.1%) |
| CIE-LAB | lab(42.53, 31.86, -54.24) |
| CIE-LCH | lch(42.53, 62.90, 300.43°) |
| OKLab | oklab(51.75% 0.0363 -0.1549) |
| OKLCH | oklch(51.75% 0.159 283.2) |
| XYZ | xyz(17.4482, 12.8491, 50.8409) |
| Luminance | 0.1285 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 1.04
Slate Blue
#6A5ACD
ΔE00 2.98
Light Indigo
#6D5ACF
ΔE00 3.53
Dark Periwinkle
#665FD1
ΔE00 3.92
Warm Blue
#4B57DB
ΔE00 4.88
Bluey Purple
#6241C7
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F56BF #B6BF56
analogous
#5682BF #5F56BF #9456BF
triadic
#5F56BF #BF5F56 #56BF5F
tetradic
#5F56BF #BF5682 #B6BF56 #56BF94
square
#5F56BF #BF5682 #B6BF56 #56BF94
split-complementary
#5F56BF #BF9456 #82BF56
monochromatic
#302A70 #443B9D #5F56BF #8982D0 #B3AFE1
Accessibility & contrast
On white
5.88
#5F56BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#5F56BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F56BF
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F56BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F56BF | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1768C3
Deuteranopia (green-blind)
#0B61BD
Tritanopia (blue-blind)
#3B6E82
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #5f56bf; /* rgb */ color: rgb(95, 86, 191); /* oklch */ color: oklch(51.8% 0.159 283.2);
Tailwind
colors: {
custom: {
50: '#9386d3',
500: '#5f56bf',
950: '#000000',
},
}SCSS
$custom: #5f56bf; $custom-light: #9386d3; $custom-dark: #000000;
JSON
{
"hex": "#5f56bf",
"rgb": {
"r": 95,
"g": 86,
"b": 191
},
"hsl": {
"h": 245.143,
"s": 45.064,
"l": 54.314
},
"oklch": {
"l": 0.51754,
"c": 0.15911,
"h": 283.2
},
"luminance": 0.1285
}Semantic roles & 50–950 ramp
primary
#5F56BF
secondary
#CBCFA2
accent
#D553CA
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0B14
muted
#7E7C83