#5F71E1#5F71E1
#5F71E1 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.2% C 0.170 H 273.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #5F71E1 |
|---|---|
| RGB | rgb(95, 113, 225) |
| HSL | hsl(232, 68%, 63%) |
| HSV | hsv(232, 58%, 88%) |
| CMYK | cmyk(57.8%, 49.8%, 0%, 11.8%) |
| CIE-LAB | lab(51.47, 26.13, -59.31) |
| CIE-LCH | lch(51.47, 64.81, 293.78°) |
| OKLab | oklab(59.16% 0.0096 -0.1696) |
| OKLCH | oklch(59.16% 0.17 273.2) |
| XYZ | xyz(24.2106, 19.6776, 73.7419) |
| Luminance | 0.1968 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower Blue
#5170D7
ΔE00 2.85
Cornflower
#6A79F7
ΔE00 4.20
Royal Blue
#4169E1
ΔE00 4.50
Lightish Blue
#3D7AFD
ΔE00 6.13
Mediumslateblue
#7B68EE
ΔE00 6.45
Dark Periwinkle
#665FD1
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F71E1 #E1CF5F
analogous
#5FB2E1 #5F71E1 #8E5FE1
triadic
#5F71E1 #E15F71 #71E15F
tetradic
#5F71E1 #E15FB2 #E1CF5F #5FE18E
square
#5F71E1 #E15FB2 #E1CF5F #5FE18E
split-complementary
#5F71E1 #E18E5F #B2E15F
monochromatic
#1F32A6 #2B43D7 #5F71E1 #939FEB #C6CCF4
Accessibility & contrast
On white
4.25
#5F71E1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.94
#5F71E1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5F71E1
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F71E1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5F71E1 | 1.00 | 4.25 | 4.94 | 4.94 |
| #FFFFFF | 4.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3680E5
Deuteranopia (green-blind)
#1D75DF
Tritanopia (blue-blind)
#008A9E
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #5f71e1; /* rgb */ color: rgb(95, 113, 225); /* oklch */ color: oklch(59.2% 0.170 273.2);
Tailwind
colors: {
custom: {
50: '#9799eb',
500: '#5f71e1',
950: '#000000',
},
}SCSS
$custom: #5f71e1; $custom-light: #9799eb; $custom-dark: #000000;
JSON
{
"hex": "#5f71e1",
"rgb": {
"r": 95,
"g": 113,
"b": 225
},
"hsl": {
"h": 231.692,
"s": 68.421,
"l": 62.745
},
"oklch": {
"l": 0.59158,
"c": 0.16987,
"h": 273.2
},
"luminance": 0.19679
}Semantic roles & 50–950 ramp
primary
#5F71E1
secondary
#E5DFB6
accent
#B615D0
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84