#5978DF#5978DF
#5978DF is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.1% C 0.160 H 268.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #5978DF |
|---|---|
| RGB | rgb(89, 120, 223) |
| HSL | hsl(226, 68%, 61%) |
| HSV | hsv(226, 60%, 87%) |
| CMYK | cmyk(60.1%, 46.2%, 0%, 12.5%) |
| CIE-LAB | lab(52.82, 20.05, -56.03) |
| CIE-LCH | lch(52.82, 59.51, 289.69°) |
| OKLab | oklab(60.05% -0.0038 -0.16) |
| OKLCH | oklch(60.05% 0.16 268.6) |
| XYZ | xyz(24.1511, 20.8825, 72.5557) |
| Luminance | 0.2089 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower Blue
#5170D7
ΔE00 3.04
Lightish Blue
#3D7AFD
ΔE00 4.12
Cornflower
#6A79F7
ΔE00 4.47
Clear Blue
#247AFD
ΔE00 5.27
Soft Blue
#6488EA
ΔE00 5.40
Royal Blue
#4169E1
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5978DF #DFC059
analogous
#59BBDF #5978DF #7D59DF
triadic
#5978DF #DF5978 #78DF59
tetradic
#5978DF #DF59BB #DFC059 #59DF7D
square
#5978DF #DF59BB #DFC059 #59DF7D
split-complementary
#5978DF #DF7D59 #BBDF59
monochromatic
#1F3C9F #2950D2 #5978DF #8CA2E9 #C0CBF3
Accessibility & contrast
On white
4.06
#5978DF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.18
#5978DF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5978DF
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5978DF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5978DF | 1.00 | 4.06 | 5.18 | 5.18 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4684E3
Deuteranopia (green-blind)
#3078DD
Tritanopia (blue-blind)
#008FA1
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #5978df; /* rgb */ color: rgb(89, 120, 223); /* oklch */ color: oklch(60.1% 0.160 268.6);
Tailwind
colors: {
custom: {
50: '#939ee9',
500: '#5978df',
950: '#000000',
},
}SCSS
$custom: #5978df; $custom-light: #939ee9; $custom-dark: #000000;
JSON
{
"hex": "#5978df",
"rgb": {
"r": 89,
"g": 120,
"b": 223
},
"hsl": {
"h": 226.119,
"s": 67.677,
"l": 61.176
},
"oklch": {
"l": 0.60053,
"c": 0.16007,
"h": 268.6
},
"luminance": 0.20885
}Semantic roles & 50–950 ramp
primary
#5978DF
secondary
#E3D7B1
accent
#A516D0
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84