#5F57BF#5F57BF

#5F57BF is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.9% C 0.158 H 282.9°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5F57BF
RGBrgb(95, 87, 191)
HSLhsl(245, 45%, 55%)
HSVhsv(245, 54%, 75%)
CMYKcmyk(50.3%, 54.5%, 0%, 25.1%)
CIE-LABlab(42.78, 31.25, -53.85)
CIE-LCHlch(42.78, 62.26, 300.13°)
OKLaboklab(51.93% 0.0352 -0.1537)
OKLCHoklch(51.93% 0.158 282.9)
XYZxyz(17.5286, 13.0100, 50.8677)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F57BF #B7BF57
analogous
#5783BF #5F57BF #9357BF
triadic
#5F57BF #BF5F57 #57BF5F
tetradic
#5F57BF #BF5783 #B7BF57 #57BF93
square
#5F57BF #BF5783 #B7BF57 #57BF93
split-complementary
#5F57BF #BF9357 #83BF57
monochromatic
#302B71 #433C9D #5F57BF #8983D0 #B3B0E1

Accessibility & contrast

On white

5.83
#5F57BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5F57BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F57BF
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F57BF#FFFFFF#000000##FFFFFF
##5F57BF1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B68C3
Deuteranopia (green-blind)
#1062BD
Tritanopia (blue-blind)
#3B6E82
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f57bf;
/* rgb */ color: rgb(95, 87, 191);
/* oklch */ color: oklch(51.9% 0.158 282.9);
Tailwind
colors: {
  custom: {
    50: '#9386d3',
    500: '#5f57bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f57bf;
$custom-light: #9386d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f57bf",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 244.615,
    "s": 44.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.51935,
    "c": 0.15773,
    "h": 282.9
  },
  "luminance": 0.13011
}

Semantic roles & 50–950 ramp

primary
#5F57BF
secondary
#CCCFA3
accent
#D553CB
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0B14
muted
#7E7C83

Preview Lab

Preview with #5F57BF

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

Preview Lab → · Contrast checker → · Palette generator →

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