#5F7DEC#5F7DEC
#5F7DEC is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.2% C 0.170 H 269.6°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).
Color values
| HEX | #5F7DEC |
|---|---|
| RGB | rgb(95, 125, 236) |
| HSL | hsl(227, 79%, 65%) |
| HSV | hsv(227, 60%, 93%) |
| CMYK | cmyk(59.7%, 47%, 0%, 7.5%) |
| CIE-LAB | lab(55.23, 22.42, -59.43) |
| CIE-LCH | lch(55.23, 63.52, 290.67°) |
| OKLab | oklab(62.23% -0.0013 -0.1698) |
| OKLCH | oklch(62.23% 0.17 269.6) |
| XYZ | xyz(27.1882, 23.1540, 82.3770) |
| Luminance | 0.2316 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 3.08
Soft Blue
#6488EA
ΔE00 3.57
Lightish Blue
#3D7AFD
ΔE00 3.71
Dodger Blue
#3E82FC
ΔE00 4.74
Clear Blue
#247AFD
ΔE00 5.31
Cornflower Blue
#5170D7
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F7DEC #ECCE5F
analogous
#5FC4EC #5F7DEC #885FEC
triadic
#5F7DEC #EC5F7D #7DEC5F
tetradic
#5F7DEC #EC5FC4 #ECCE5F #5FEC88
square
#5F7DEC #EC5FC4 #ECCE5F #5FEC88
split-complementary
#5F7DEC #EC885F #C4EC5F
monochromatic
#1639BA #2851E6 #5F7DEC #96A9F2 #CCD6F9
Accessibility & contrast
On white
3.73
#5F7DEC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.63
#5F7DEC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5F7DEC
5.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F7DEC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5F7DEC | 1.00 | 3.73 | 5.63 | 5.63 |
| #FFFFFF | 3.73 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#468BF0
Deuteranopia (green-blind)
#2E7EEA
Tritanopia (blue-blind)
#0096A9
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #5f7dec; /* rgb */ color: rgb(95, 125, 236); /* oklch */ color: oklch(62.2% 0.170 269.6);
Tailwind
colors: {
custom: {
50: '#98a2f3',
500: '#5f7dec',
950: '#000000',
},
}SCSS
$custom: #5f7dec; $custom-light: #98a2f3; $custom-dark: #000000;
JSON
{
"hex": "#5f7dec",
"rgb": {
"r": 95,
"g": 125,
"b": 236
},
"hsl": {
"h": 227.234,
"s": 78.771,
"l": 64.902
},
"oklch": {
"l": 0.62227,
"c": 0.16982,
"h": 269.6
},
"luminance": 0.23156
}Semantic roles & 50–950 ramp
primary
#5F7DEC
secondary
#EBE1BB
accent
#AF0ADB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0F17
muted
#7E7E85