#5F57CC#5F57CC

#5F57CC is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.9% C 0.175 H 281.7°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5F57CC
RGBrgb(95, 87, 204)
HSLhsl(244, 53%, 57%)
HSVhsv(244, 57%, 80%)
CMYKcmyk(53.4%, 57.4%, 0%, 20%)
CIE-LABlab(43.67, 35.30, -59.94)
CIE-LCHlch(43.67, 69.56, 300.49°)
OKLaboklab(52.88% 0.0354 -0.1717)
OKLCHoklch(52.88% 0.175 281.7)
XYZxyz(19.0232, 13.6078, 58.7392)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F57CC #C4CC57
analogous
#5789CC #5F57CC #9A57CC
triadic
#5F57CC #CC5F57 #57CC5F
tetradic
#5F57CC #CC5789 #C4CC57 #57CC9A
square
#5F57CC #CC5789 #C4CC57 #57CC9A
split-complementary
#5F57CC #CC9A57 #89CC57
monochromatic
#2D2781 #3E36B0 #5F57CC #8C86DA #B8B5E9

Accessibility & contrast

On white

5.64
#5F57CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#5F57CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F57CC
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F57CC#FFFFFF#000000##FFFFFF
##5F57CC1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#2F7289
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f57cc;
/* rgb */ color: rgb(95, 87, 204);
/* oklch */ color: oklch(52.9% 0.175 281.7);
Tailwind
colors: {
  custom: {
    50: '#9586dc',
    500: '#5f57cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f57cc;
$custom-light: #9586dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f57cc",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 244.103,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52876,
    "c": 0.17529,
    "h": 281.7
  },
  "luminance": 0.13609
}

Semantic roles & 50–950 ramp

primary
#5F57CC
secondary
#D4D7A8
accent
#DD4BD3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F57CC

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

Preview Lab → · Contrast checker → · Palette generator →

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