#5F57EA#5F57EA

#5F57EA is a mid, highly saturated blue. Relative luminance 0.152; OKLCH L 55.2% C 0.214 H 279.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5F57EA
RGBrgb(95, 87, 234)
HSLhsl(243, 78%, 63%)
HSVhsv(243, 63%, 92%)
CMYKcmyk(59.4%, 62.8%, 0%, 8.2%)
CIE-LABlab(45.89, 44.69, -73.42)
CIE-LCHlch(45.89, 85.95, 301.33°)
OKLaboklab(55.21% 0.0341 -0.2113)
OKLCHoklch(55.21% 0.214 279.2)
XYZxyz(22.9741, 15.1881, 79.5469)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F57EA #E2EA57
analogous
#5799EA #5F57EA #A857EA
triadic
#5F57EA #EA5F57 #57EA5F
tetradic
#5F57EA #EA5799 #E2EA57 #57EAA8
square
#5F57EA #EA5799 #E2EA57 #57EAA8
split-complementary
#5F57EA #EAA857 #99EA57
monochromatic
#1E16B1 #2B21E3 #5F57EA #938DF1 #C7C4F8

Accessibility & contrast

On white

5.20
#5F57EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5F57EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F57EA
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F57EA#FFFFFF#000000##FFFFFF
##5F57EA1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EF
Deuteranopia (green-blind)
#0067E7
Tritanopia (blue-blind)
#007C99
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5f57ea;
/* rgb */ color: rgb(95, 87, 234);
/* oklch */ color: oklch(55.2% 0.214 279.2);
Tailwind
colors: {
  custom: {
    50: '#9a87f2',
    500: '#5f57ea',
    950: '#000000',
  },
}
SCSS
$custom: #5f57ea;
$custom-light: #9a87f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f57ea",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 234
  },
  "hsl": {
    "h": 243.265,
    "s": 77.778,
    "l": 62.941
  },
  "oklch": {
    "l": 0.55209,
    "c": 0.21405,
    "h": 279.2
  },
  "luminance": 0.1519
}

Semantic roles & 50–950 ramp

primary
#5F57EA
secondary
#E6E9B4
accent
#DA0BCF
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F57EA

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

Preview Lab → · Contrast checker → · Palette generator →

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