#5F57F2#5F57F2

#5F57F2 is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.9% C 0.224 H 278.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5F57F2
RGBrgb(95, 87, 242)
HSLhsl(243, 86%, 65%)
HSVhsv(243, 64%, 95%)
CMYKcmyk(60.7%, 64%, 0%, 5.1%)
CIE-LABlab(46.52, 47.19, -76.89)
CIE-LCHlch(46.52, 90.21, 301.54°)
OKLaboklab(55.87% 0.0334 -0.2215)
OKLCHoklch(55.87% 0.224 278.6)
XYZxyz(24.1494, 15.6582, 85.7369)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F57F2 #EAF257
analogous
#579CF2 #5F57F2 #AD57F2
triadic
#5F57F2 #F25F57 #57F25F
tetradic
#5F57F2 #F2579C #EAF257 #57F2AD
square
#5F57F2 #F2579C #EAF257 #57F2AD
split-complementary
#5F57F2 #F2AD57 #9CF257
monochromatic
#180FC0 #291EEE #5F57F2 #9590F6 #CBC9FB

Accessibility & contrast

On white

5.08
#5F57F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5F57F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F57F2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F57F2#FFFFFF#000000##FFFFFF
##5F57F21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#0068EF
Tritanopia (blue-blind)
#007F9D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f57f2;
/* rgb */ color: rgb(95, 87, 242);
/* oklch */ color: oklch(55.9% 0.224 278.6);
Tailwind
colors: {
  custom: {
    50: '#9b87f7',
    500: '#5f57f2',
    950: '#000000',
  },
}
SCSS
$custom: #5f57f2;
$custom-light: #9b87f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f57f2",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 243.097,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.55866,
    "c": 0.22399,
    "h": 278.6
  },
  "luminance": 0.1566
}

Semantic roles & 50–950 ramp

primary
#5F57F2
secondary
#EAEDB8
accent
#E203D7
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F57F2

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

Preview Lab → · Contrast checker → · Palette generator →

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