#5F74EA#5F74EA
#5F74EA is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.3% C 0.178 H 272.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #5F74EA |
|---|---|
| RGB | rgb(95, 116, 234) |
| HSL | hsl(231, 77%, 65%) |
| HSV | hsv(231, 59%, 92%) |
| CMYK | cmyk(59.4%, 50.4%, 0%, 8.2%) |
| CIE-LAB | lab(52.80, 27.24, -62.22) |
| CIE-LCH | lch(52.80, 67.93, 293.65°) |
| OKLab | oklab(60.34% 0.0074 -0.1781) |
| OKLCH | oklch(60.34% 0.178 272.4) |
| XYZ | xyz(25.8111, 20.8621, 80.4926) |
| Luminance | 0.2086 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 2.84
Cornflower Blue
#5170D7
ΔE00 3.73
Lightish Blue
#3D7AFD
ΔE00 5.04
Royal Blue
#4169E1
ΔE00 5.32
Clear Blue
#247AFD
ΔE00 6.60
Soft Blue
#6488EA
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F74EA #EAD55F
analogous
#5FBAEA #5F74EA #8F5FEA
triadic
#5F74EA #EA5F74 #74EA5F
tetradic
#5F74EA #EA5FBA #EAD55F #5FEA8F
square
#5F74EA #EA5FBA #EAD55F #5FEA8F
split-complementary
#5F74EA #EA8F5F #BAEA5F
monochromatic
#1830B7 #2945E3 #5F74EA #95A3F1 #CBD2F8
Accessibility & contrast
On white
4.06
#5F74EA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#5F74EA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5F74EA
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F74EA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5F74EA | 1.00 | 4.06 | 5.17 | 5.17 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3384EE
Deuteranopia (green-blind)
#0F78E8
Tritanopia (blue-blind)
#008FA4
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #5f74ea; /* rgb */ color: rgb(95, 116, 234); /* oklch */ color: oklch(60.3% 0.178 272.4);
Tailwind
colors: {
custom: {
50: '#989bf1',
500: '#5f74ea',
950: '#000000',
},
}SCSS
$custom: #5f74ea; $custom-light: #989bf1; $custom-dark: #000000;
JSON
{
"hex": "#5f74ea",
"rgb": {
"r": 95,
"g": 116,
"b": 234
},
"hsl": {
"h": 230.935,
"s": 76.796,
"l": 64.51
},
"oklch": {
"l": 0.60343,
"c": 0.17829,
"h": 272.4
},
"luminance": 0.20864
}Semantic roles & 50–950 ramp
primary
#5F74EA
secondary
#EAE3BA
accent
#BA0CD9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E17
muted
#7E7E85