#5F74EB#5F74EB
#5F74EB is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.4% C 0.180 H 272.4°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #5F74EB |
|---|---|
| RGB | rgb(95, 116, 235) |
| HSL | hsl(231, 78%, 65%) |
| HSV | hsv(231, 60%, 92%) |
| CMYK | cmyk(59.6%, 50.6%, 0%, 7.8%) |
| CIE-LAB | lab(52.86, 27.57, -62.68) |
| CIE-LCH | lch(52.86, 68.48, 293.74°) |
| OKLab | oklab(60.41% 0.0075 -0.1795) |
| OKLCH | oklch(60.41% 0.18 272.4) |
| XYZ | xyz(25.9551, 20.9198, 81.2513) |
| Luminance | 0.2092 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 2.75
Cornflower Blue
#5170D7
ΔE00 3.83
Lightish Blue
#3D7AFD
ΔE00 5.01
Royal Blue
#4169E1
ΔE00 5.38
Clear Blue
#247AFD
ΔE00 6.59
Soft Blue
#6488EA
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F74EB #EBD65F
analogous
#5FBAEB #5F74EB #905FEB
triadic
#5F74EB #EB5F74 #74EB5F
tetradic
#5F74EB #EB5FBA #EBD65F #5FEB90
square
#5F74EB #EB5FBA #EBD65F #5FEB90
split-complementary
#5F74EB #EB905F #BAEB5F
monochromatic
#172FB9 #2945E4 #5F74EB #95A3F2 #CCD3F9
Accessibility & contrast
On white
4.05
#5F74EB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.18
#5F74EB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5F74EB
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F74EB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5F74EB | 1.00 | 4.05 | 5.18 | 5.18 |
| #FFFFFF | 4.05 | 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)
#3185EF
Deuteranopia (green-blind)
#0A78E9
Tritanopia (blue-blind)
#008FA5
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #5f74eb; /* rgb */ color: rgb(95, 116, 235); /* oklch */ color: oklch(60.4% 0.180 272.4);
Tailwind
colors: {
custom: {
50: '#989bf2',
500: '#5f74eb',
950: '#000000',
},
}SCSS
$custom: #5f74eb; $custom-light: #989bf2; $custom-dark: #000000;
JSON
{
"hex": "#5f74eb",
"rgb": {
"r": 95,
"g": 116,
"b": 235
},
"hsl": {
"h": 231,
"s": 77.778,
"l": 64.706
},
"oklch": {
"l": 0.60411,
"c": 0.17964,
"h": 272.4
},
"luminance": 0.20922
}Semantic roles & 50–950 ramp
primary
#5F74EB
secondary
#EBE4BB
accent
#BB0BDA
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0E17
muted
#7F7E85