#5742D2#5742D2

#5742D2 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.4% C 0.210 H 282.1°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5742D2
RGBrgb(87, 66, 210)
HSLhsl(249, 62%, 54%)
HSVhsv(249, 69%, 82%)
CMYKcmyk(58.6%, 68.6%, 0%, 17.6%)
CIE-LABlab(38.85, 48.05, -71.26)
CIE-LCHlch(38.85, 85.95, 303.99°)
OKLaboklab(49.35% 0.0441 -0.2052)
OKLCHoklch(49.35% 0.21 282.1)
XYZxyz(17.5079, 10.5746, 62.0788)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742D2 #BDD242
analogous
#4275D2 #5742D2 #9F42D2
triadic
#5742D2 #D25742 #42D257
tetradic
#5742D2 #D24275 #BDD242 #42D29F
square
#5742D2 #D24275 #BDD242 #42D29F
split-complementary
#5742D2 #D29F42 #75D242
monochromatic
#2B1E7C #3D29AD #5742D2 #8373DE #AFA5EA

Accessibility & contrast

On white

6.74
#5742D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5742D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742D2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742D2#FFFFFF#000000##FFFFFF
##5742D21.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D6
Deuteranopia (green-blind)
#0056CF
Tritanopia (blue-blind)
#016885
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5742d2;
/* rgb */ color: rgb(87, 66, 210);
/* oklch */ color: oklch(49.4% 0.210 282.1);
Tailwind
colors: {
  custom: {
    50: '#9378e1',
    500: '#5742d2',
    950: '#000000',
  },
}
SCSS
$custom: #5742d2;
$custom-light: #9378e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5742d2",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 248.75,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49354,
    "c": 0.20992,
    "h": 282.1
  },
  "luminance": 0.10576
}

Semantic roles & 50–950 ramp

primary
#5742D2
secondary
#CED799
accent
#E543CD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5742D2

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

Preview Lab → · Contrast checker → · Palette generator →

#5742D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva