#5F56BE#5F56BE
#5F56BE is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.7% C 0.158 H 283.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).
Color values
| HEX | #5F56BE |
|---|---|
| RGB | rgb(95, 86, 190) |
| HSL | hsl(245, 44%, 54%) |
| HSV | hsv(245, 55%, 75%) |
| CMYK | cmyk(50%, 54.7%, 0%, 25.5%) |
| CIE-LAB | lab(42.47, 31.55, -53.76) |
| CIE-LCH | lch(42.47, 62.34, 300.41°) |
| OKLab | oklab(51.68% 0.0363 -0.1535) |
| OKLCH | oklch(51.68% 0.158 283.3) |
| XYZ | xyz(17.3386, 12.8053, 50.2633) |
| Luminance | 0.1281 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 1.15
Slate Blue
#6A5ACD
ΔE00 3.08
Light Indigo
#6D5ACF
ΔE00 3.63
Dark Periwinkle
#665FD1
ΔE00 4.03
Warm Blue
#4B57DB
ΔE00 5.01
Bluey Purple
#6241C7
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F56BE #B5BE56
analogous
#5681BE #5F56BE #9356BE
triadic
#5F56BE #BE5F56 #56BE5F
tetradic
#5F56BE #BE5681 #B5BE56 #56BE93
square
#5F56BE #BE5681 #B5BE56 #56BE93
split-complementary
#5F56BE #BE9356 #81BE56
monochromatic
#312B6F #443C9B #5F56BE #8982CF #B3AEE0
Accessibility & contrast
On white
5.90
#5F56BE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#5F56BE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F56BE
5.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F56BE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F56BE | 1.00 | 5.90 | 3.56 | 5.90 |
| #FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1968C2
Deuteranopia (green-blind)
#0F61BC
Tritanopia (blue-blind)
#3C6D81
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #5f56be; /* rgb */ color: rgb(95, 86, 190); /* oklch */ color: oklch(51.7% 0.158 283.3);
Tailwind
colors: {
custom: {
50: '#9386d2',
500: '#5f56be',
950: '#000000',
},
}SCSS
$custom: #5f56be; $custom-light: #9386d2; $custom-dark: #000000;
JSON
{
"hex": "#5f56be",
"rgb": {
"r": 95,
"g": 86,
"b": 190
},
"hsl": {
"h": 245.192,
"s": 44.444,
"l": 54.118
},
"oklch": {
"l": 0.51683,
"c": 0.15774,
"h": 283.3
},
"luminance": 0.12806
}Semantic roles & 50–950 ramp
primary
#5F56BE
secondary
#CACEA2
accent
#D454C9
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0B14
muted
#7E7C83