#5F57D2#5F57D2

#5F57D2 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 53.3% C 0.183 H 281.1°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#5F57D2
RGBrgb(95, 87, 210)
HSLhsl(244, 58%, 58%)
HSVhsv(244, 59%, 82%)
CMYKcmyk(54.8%, 58.6%, 0%, 17.6%)
CIE-LABlab(44.09, 37.17, -62.70)
CIE-LCHlch(44.09, 72.89, 300.66°)
OKLaboklab(53.33% 0.0353 -0.1798)
OKLCHoklch(53.33% 0.183 281.1)
XYZxyz(19.7568, 13.9012, 62.6024)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F57D2 #CAD257
analogous
#578DD2 #5F57D2 #9C57D2
triadic
#5F57D2 #D25F57 #57D25F
tetradic
#5F57D2 #D2578D #CAD257 #57D29C
square
#5F57D2 #D2578D #CAD257 #57D29C
split-complementary
#5F57D2 #D29C57 #8DD257
monochromatic
#2B258A #3B32BA #5F57D2 #8D87DF #BBB8EC

Accessibility & contrast

On white

5.55
#5F57D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5F57D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F57D2
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F57D2#FFFFFF#000000##FFFFFF
##5F57D21.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#0064CF
Tritanopia (blue-blind)
#28748C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5f57d2;
/* rgb */ color: rgb(95, 87, 210);
/* oklch */ color: oklch(53.3% 0.183 281.1);
Tailwind
colors: {
  custom: {
    50: '#9687e1',
    500: '#5f57d2',
    950: '#000000',
  },
}
SCSS
$custom: #5f57d2;
$custom-light: #9687e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f57d2",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 210
  },
  "hsl": {
    "h": 243.902,
    "s": 57.746,
    "l": 58.235
  },
  "oklch": {
    "l": 0.53325,
    "c": 0.18324,
    "h": 281.1
  },
  "luminance": 0.13902
}

Semantic roles & 50–950 ramp

primary
#5F57D2
secondary
#D8DBAA
accent
#E147D7
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F57D2

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

Preview Lab → · Contrast checker → · Palette generator →

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