#5F57E9#5F57E9

#5F57E9 is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.1% C 0.213 H 279.2°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5F57E9
RGBrgb(95, 87, 233)
HSLhsl(243, 77%, 63%)
HSVhsv(243, 63%, 91%)
CMYKcmyk(59.2%, 62.7%, 0%, 8.6%)
CIE-LABlab(45.81, 44.38, -72.98)
CIE-LCHlch(45.81, 85.42, 301.30°)
OKLaboklab(55.13% 0.0342 -0.21)
OKLCHoklch(55.13% 0.213 279.2)
XYZxyz(22.8308, 15.1308, 78.7924)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F57E9 #E1E957
analogous
#5798E9 #5F57E9 #A857E9
triadic
#5F57E9 #E95F57 #57E95F
tetradic
#5F57E9 #E95798 #E1E957 #57E9A8
square
#5F57E9 #E95798 #E1E957 #57E9A8
split-complementary
#5F57E9 #E9A857 #98E957
monochromatic
#1F17AF #2B21E2 #5F57E9 #938DF0 #C6C3F7

Accessibility & contrast

On white

5.22
#5F57E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5F57E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F57E9
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F57E9#FFFFFF#000000##FFFFFF
##5F57E91.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EE
Deuteranopia (green-blind)
#0067E6
Tritanopia (blue-blind)
#007C98
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f57e9;
/* rgb */ color: rgb(95, 87, 233);
/* oklch */ color: oklch(55.1% 0.213 279.2);
Tailwind
colors: {
  custom: {
    50: '#9987f1',
    500: '#5f57e9',
    950: '#000000',
  },
}
SCSS
$custom: #5f57e9;
$custom-light: #9987f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f57e9",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 233
  },
  "hsl": {
    "h": 243.288,
    "s": 76.842,
    "l": 62.745
  },
  "oklch": {
    "l": 0.55128,
    "c": 0.21278,
    "h": 279.2
  },
  "luminance": 0.15132
}

Semantic roles & 50–950 ramp

primary
#5F57E9
secondary
#E5E8B3
accent
#D90CCE
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F57E9

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

Preview Lab → · Contrast checker → · Palette generator →

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