#5F57CB#5F57CB

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

Color values

HEX#5F57CB
RGBrgb(95, 87, 203)
HSLhsl(244, 53%, 57%)
HSVhsv(244, 57%, 80%)
CMYKcmyk(53.2%, 57.1%, 0%, 20.4%)
CIE-LABlab(43.60, 34.98, -59.48)
CIE-LCHlch(43.60, 69.00, 300.46°)
OKLaboklab(52.8% 0.0354 -0.1703)
OKLCHoklch(52.8% 0.174 281.7)
XYZxyz(18.9037, 13.5600, 58.1096)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F57CB #C3CB57
analogous
#5789CB #5F57CB #9957CB
triadic
#5F57CB #CB5F57 #57CB5F
tetradic
#5F57CB #CB5789 #C3CB57 #57CB99
square
#5F57CB #CB5789 #C3CB57 #57CB99
split-complementary
#5F57CB #CB9957 #89CB57
monochromatic
#2E2880 #3E36AF #5F57CB #8C86D9 #B8B4E8

Accessibility & contrast

On white

5.66
#5F57CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5F57CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F57CB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F57CB#FFFFFF#000000##FFFFFF
##5F57CB1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#0063C9
Tritanopia (blue-blind)
#307288
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f57cb;
/* rgb */ color: rgb(95, 87, 203);
/* oklch */ color: oklch(52.8% 0.174 281.7);
Tailwind
colors: {
  custom: {
    50: '#9586dc',
    500: '#5f57cb',
    950: '#000000',
  },
}
SCSS
$custom: #5f57cb;
$custom-light: #9586dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f57cb",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 244.138,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52802,
    "c": 0.17396,
    "h": 281.7
  },
  "luminance": 0.13561
}

Semantic roles & 50–950 ramp

primary
#5F57CB
secondary
#D3D7A7
accent
#DC4CD2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F57CB

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

Preview Lab → · Contrast checker → · Palette generator →

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