#5F57E4#5F57E4

#5F57E4 is a mid, highly saturated blue. Relative luminance 0.149; OKLCH L 54.7% C 0.206 H 279.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5F57E4
RGBrgb(95, 87, 228)
HSLhsl(243, 72%, 62%)
HSVhsv(243, 62%, 89%)
CMYKcmyk(58.3%, 61.8%, 0%, 10.6%)
CIE-LABlab(45.43, 42.81, -70.79)
CIE-LCHlch(45.43, 82.73, 301.17°)
OKLaboklab(54.73% 0.0345 -0.2036)
OKLCHoklch(54.73% 0.206 279.6)
XYZxyz(22.1267, 14.8492, 75.0839)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F57E4 #DCE457
analogous
#5796E4 #5F57E4 #A657E4
triadic
#5F57E4 #E45F57 #57E45F
tetradic
#5F57E4 #E45796 #DCE457 #57E4A6
square
#5F57E4 #E45796 #DCE457 #57E4A6
split-complementary
#5F57E4 #E4A657 #96E457
monochromatic
#231BA6 #2E23DB #5F57E4 #918CEC #C3C0F5

Accessibility & contrast

On white

5.29
#5F57E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5F57E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F57E4
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F57E4#FFFFFF#000000##FFFFFF
##5F57E41.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E9
Deuteranopia (green-blind)
#0066E1
Tritanopia (blue-blind)
#007A95
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f57e4;
/* rgb */ color: rgb(95, 87, 228);
/* oklch */ color: oklch(54.7% 0.206 279.6);
Tailwind
colors: {
  custom: {
    50: '#9987ed',
    500: '#5f57e4',
    950: '#000000',
  },
}
SCSS
$custom: #5f57e4;
$custom-light: #9987ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5f57e4",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 228
  },
  "hsl": {
    "h": 243.404,
    "s": 72.308,
    "l": 61.765
  },
  "oklch": {
    "l": 0.54726,
    "c": 0.20648,
    "h": 279.6
  },
  "luminance": 0.14851
}

Semantic roles & 50–950 ramp

primary
#5F57E4
secondary
#E3E6B1
accent
#D411C9
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5F57E4

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5F57E4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva