#5F52CB#5F52CB
#5F52CB is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.9% C 0.181 H 283.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).
Color values
| HEX | #5F52CB |
|---|---|
| RGB | rgb(95, 82, 203) |
| HSL | hsl(246, 54%, 56%) |
| HSV | hsv(246, 60%, 80%) |
| CMYK | cmyk(53.2%, 59.6%, 0%, 20.4%) |
| CIE-LAB | lab(42.43, 37.99, -61.37) |
| CIE-LCH | lch(42.43, 72.18, 301.76°) |
| OKLab | oklab(51.94% 0.0406 -0.1759) |
| OKLCH | oklch(51.94% 0.181 283) |
| XYZ | xyz(18.5128, 12.7782, 57.9793) |
| Luminance | 0.1278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.10
Slate Blue
#6A5ACD
ΔE00 2.90
Light Indigo
#6D5ACF
ΔE00 3.28
Warm Blue
#4B57DB
ΔE00 4.05
Dark Periwinkle
#665FD1
ΔE00 4.12
Bluey Purple
#6241C7
ΔE00 4.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F52CB #BECB52
analogous
#5281CB #5F52CB #9B52CB
triadic
#5F52CB #CB5F52 #52CB5F
tetradic
#5F52CB #CB5281 #BECB52 #52CB9B
square
#5F52CB #CB5281 #BECB52 #52CB9B
split-complementary
#5F52CB #CB9B52 #81CB52
monochromatic
#2F267D #4134AC #5F52CB #8B81D9 #B6B0E7
Accessibility & contrast
On white
5.91
#5F52CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#5F52CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F52CB
5.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F52CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F52CB | 1.00 | 5.91 | 3.56 | 5.91 |
| #FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#316F87
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #5f52cb; /* rgb */ color: rgb(95, 82, 203); /* oklch */ color: oklch(51.9% 0.181 283.0);
Tailwind
colors: {
custom: {
50: '#9583dc',
500: '#5f52cb',
950: '#000000',
},
}SCSS
$custom: #5f52cb; $custom-light: #9583dc; $custom-dark: #000000;
JSON
{
"hex": "#5f52cb",
"rgb": {
"r": 95,
"g": 82,
"b": 203
},
"hsl": {
"h": 246.446,
"s": 53.778,
"l": 55.882
},
"oklch": {
"l": 0.5194,
"c": 0.18053,
"h": 283
},
"luminance": 0.12779
}Semantic roles & 50–950 ramp
primary
#5F52CB
secondary
#D0D5A3
accent
#DD4BCD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83