#5F7BEA#5F7BEA
#5F7BEA is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.7% C 0.170 H 270.2°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).
Color values
| HEX | #5F7BEA |
|---|---|
| RGB | rgb(95, 123, 234) |
| HSL | hsl(228, 77%, 65%) |
| HSV | hsv(228, 59%, 92%) |
| CMYK | cmyk(59.4%, 47.4%, 0%, 8.2%) |
| CIE-LAB | lab(54.59, 22.97, -59.34) |
| CIE-LCH | lch(54.59, 63.63, 291.17°) |
| OKLab | oklab(61.7% 0.0005 -0.1696) |
| OKLCH | oklch(61.7% 0.17 270.2) |
| XYZ | xyz(26.6486, 22.5372, 80.7717) |
| Luminance | 0.2254 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 2.88
Lightish Blue
#3D7AFD
ΔE00 3.89
Soft Blue
#6488EA
ΔE00 4.24
Cornflower Blue
#5170D7
ΔE00 4.79
Dodger Blue
#3E82FC
ΔE00 5.25
Clear Blue
#247AFD
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F7BEA #EACE5F
analogous
#5FC0EA #5F7BEA #895FEA
triadic
#5F7BEA #EA5F7B #7BEA5F
tetradic
#5F7BEA #EA5FC0 #EACE5F #5FEA89
square
#5F7BEA #EA5FC0 #EACE5F #5FEA89
split-complementary
#5F7BEA #EA895F #C0EA5F
monochromatic
#1838B7 #294EE3 #5F7BEA #95A8F1 #CBD4F8
Accessibility & contrast
On white
3.81
#5F7BEA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.51
#5F7BEA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5F7BEA
5.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F7BEA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5F7BEA | 1.00 | 3.81 | 5.51 | 5.51 |
| #FFFFFF | 3.81 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.51 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.51 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4489EE
Deuteranopia (green-blind)
#2C7DE8
Tritanopia (blue-blind)
#0094A7
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #5f7bea; /* rgb */ color: rgb(95, 123, 234); /* oklch */ color: oklch(61.7% 0.170 270.2);
Tailwind
colors: {
custom: {
50: '#98a0f1',
500: '#5f7bea',
950: '#000000',
},
}SCSS
$custom: #5f7bea; $custom-light: #98a0f1; $custom-dark: #000000;
JSON
{
"hex": "#5f7bea",
"rgb": {
"r": 95,
"g": 123,
"b": 234
},
"hsl": {
"h": 227.914,
"s": 76.796,
"l": 64.51
},
"oklch": {
"l": 0.61702,
"c": 0.16957,
"h": 270.2
},
"luminance": 0.22539
}Semantic roles & 50–950 ramp
primary
#5F7BEA
secondary
#EAE1BA
accent
#B00CD9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E17
muted
#7E7E85