#5F78DF#5F78DF
#5F78DF is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.4% C 0.158 H 270.8°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #5F78DF |
|---|---|
| RGB | rgb(95, 120, 223) |
| HSL | hsl(228, 67%, 62%) |
| HSV | hsv(228, 57%, 87%) |
| CMYK | cmyk(57.4%, 46.2%, 0%, 12.5%) |
| CIE-LAB | lab(53.16, 21.19, -55.47) |
| CIE-LCH | lch(53.16, 59.38, 290.91°) |
| OKLab | oklab(60.4% 0.0021 -0.1582) |
| OKLCH | oklch(60.4% 0.158 270.8) |
| XYZ | xyz(24.7507, 21.1916, 72.5839) |
| Luminance | 0.2119 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower Blue
#5170D7
ΔE00 3.41
Cornflower
#6A79F7
ΔE00 3.80
Lightish Blue
#3D7AFD
ΔE00 4.82
Soft Blue
#6488EA
ΔE00 5.45
Royal Blue
#4169E1
ΔE00 5.82
Clear Blue
#247AFD
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F78DF #DFC65F
analogous
#5FB8DF #5F78DF #865FDF
triadic
#5F78DF #DF5F78 #78DF5F
tetradic
#5F78DF #DF5FB8 #DFC65F #5FDF86
square
#5F78DF #DF5FB8 #DFC65F #5FDF86
split-complementary
#5F78DF #DF865F #B8DF5F
monochromatic
#213AA3 #2C4DD5 #5F78DF #92A3E9 #C5CEF3
Accessibility & contrast
On white
4.01
#5F78DF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.24
#5F78DF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5F78DF
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F78DF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5F78DF | 1.00 | 4.01 | 5.24 | 5.24 |
| #FFFFFF | 4.01 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4885E3
Deuteranopia (green-blind)
#357ADD
Tritanopia (blue-blind)
#008FA1
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #5f78df; /* rgb */ color: rgb(95, 120, 223); /* oklch */ color: oklch(60.4% 0.158 270.8);
Tailwind
colors: {
custom: {
50: '#969ee9',
500: '#5f78df',
950: '#000000',
},
}SCSS
$custom: #5f78df; $custom-light: #969ee9; $custom-dark: #000000;
JSON
{
"hex": "#5f78df",
"rgb": {
"r": 95,
"g": 120,
"b": 223
},
"hsl": {
"h": 228.281,
"s": 66.667,
"l": 62.353
},
"oklch": {
"l": 0.60401,
"c": 0.15826,
"h": 270.8
},
"luminance": 0.21194
}Semantic roles & 50–950 ramp
primary
#5F78DF
secondary
#E4DBB6
accent
#AB17CF
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84