#5B57CB#5B57CB

#5B57CB is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.5% C 0.175 H 280.1°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5B57CB
RGBrgb(91, 87, 203)
HSLhsl(242, 53%, 57%)
HSVhsv(242, 57%, 80%)
CMYKcmyk(55.2%, 57.1%, 0%, 20.4%)
CIE-LABlab(43.29, 34.21, -59.99)
CIE-LCHlch(43.29, 69.06, 299.69°)
OKLaboklab(52.5% 0.0305 -0.1719)
OKLCHoklch(52.5% 0.175 280.1)
XYZxyz(18.4987, 13.3511, 58.0906)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B57CB #C7CB57
analogous
#578DCB #5B57CB #9557CB
triadic
#5B57CB #CB5B57 #57CB5B
tetradic
#5B57CB #CB578D #C7CB57 #57CB95
square
#5B57CB #CB578D #C7CB57 #57CB95
split-complementary
#5B57CB #CB9557 #8DCB57
monochromatic
#2B2880 #3A36AF #5B57CB #8986D9 #B6B4E8

Accessibility & contrast

On white

5.72
#5B57CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5B57CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B57CB
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B57CB#FFFFFF#000000##FFFFFF
##5B57CB1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#247288
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b57cb;
/* rgb */ color: rgb(91, 87, 203);
/* oklch */ color: oklch(52.5% 0.175 280.1);
Tailwind
colors: {
  custom: {
    50: '#9386dc',
    500: '#5b57cb',
    950: '#000000',
  },
}
SCSS
$custom: #5b57cb;
$custom-light: #9386dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b57cb",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 242.069,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52496,
    "c": 0.17463,
    "h": 280.1
  },
  "luminance": 0.13352
}

Semantic roles & 50–950 ramp

primary
#5B57CB
secondary
#D5D7A7
accent
#DC4CD7
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B57CB

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

Preview Lab → · Contrast checker → · Palette generator →

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