#5B5FCF#5B5FCF
#5B5FCF is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.2% C 0.170 H 277.6°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #5B5FCF |
|---|---|
| RGB | rgb(91, 95, 207) |
| HSL | hsl(238, 55%, 58%) |
| HSV | hsv(238, 56%, 81%) |
| CMYK | cmyk(56%, 54.1%, 0%, 18.8%) |
| CIE-LAB | lab(45.51, 30.58, -58.69) |
| CIE-LCH | lch(45.51, 66.18, 297.52°) |
| OKLab | oklab(54.24% 0.0224 -0.1681) |
| OKLCH | oklch(54.24% 0.17 277.6) |
| XYZ | xyz(19.6655, 14.9122, 60.8615) |
| Luminance | 0.1491 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.01
Iris
#6258C4
ΔE00 3.24
Warm Blue
#4B57DB
ΔE00 3.32
Slate Blue
#6A5ACD
ΔE00 3.43
Light Indigo
#6D5ACF
ΔE00 3.89
Royal Blue
#4169E1
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B5FCF #CFCB5B
analogous
#5B99CF #5B5FCF #915BCF
triadic
#5B5FCF #CF5B5F #5FCF5B
tetradic
#5B5FCF #CF5B99 #CFCB5B #5BCF91
square
#5B5FCF #CF5B99 #CFCB5B #5BCF91
split-complementary
#5B5FCF #CF915B #99CF5B
monochromatic
#282B88 #363AB7 #5B5FCF #8A8DDD #BABBEB
Accessibility & contrast
On white
5.27
#5B5FCF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#5B5FCF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B5FCF
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B5FCF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B5FCF | 1.00 | 5.27 | 3.98 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1771D3
Deuteranopia (green-blind)
#0067CD
Tritanopia (blue-blind)
#1B798E
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #5b5fcf; /* rgb */ color: rgb(91, 95, 207); /* oklch */ color: oklch(54.2% 0.170 277.6);
Tailwind
colors: {
custom: {
50: '#938cde',
500: '#5b5fcf',
950: '#000000',
},
}SCSS
$custom: #5b5fcf; $custom-light: #938cde; $custom-dark: #000000;
JSON
{
"hex": "#5b5fcf",
"rgb": {
"r": 91,
"g": 95,
"b": 207
},
"hsl": {
"h": 237.931,
"s": 54.717,
"l": 58.431
},
"oklch": {
"l": 0.5424,
"c": 0.16954,
"h": 277.6
},
"luminance": 0.14914
}Semantic roles & 50–950 ramp
primary
#5B5FCF
secondary
#DAD8AC
accent
#D94ADE
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83