#5742CC#5742CC

#5742CC is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 48.8% C 0.203 H 282.8°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5742CC
RGBrgb(87, 66, 204)
HSLhsl(249, 58%, 53%)
HSVhsv(249, 68%, 80%)
CMYKcmyk(57.4%, 67.6%, 0%, 20%)
CIE-LABlab(38.34, 46.23, -68.63)
CIE-LCHlch(38.34, 82.75, 303.96°)
OKLaboklab(48.83% 0.045 -0.1975)
OKLCHoklch(48.83% 0.203 282.8)
XYZxyz(16.7744, 10.2812, 58.2156)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742CC #B7CC42
analogous
#4272CC #5742CC #9C42CC
triadic
#5742CC #CC5742 #42CC57
tetradic
#5742CC #CC4272 #B7CC42 #42CC9C
square
#5742CC #CC4272 #B7CC42 #42CC9C
split-complementary
#5742CC #CC9C42 #72CC42
monochromatic
#2C1F74 #3F2CA4 #5742CC #8272D9 #ADA2E6

Accessibility & contrast

On white

6.87
#5742CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5742CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742CC
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742CC#FFFFFF#000000##FFFFFF
##5742CC1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#156682
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5742cc;
/* rgb */ color: rgb(87, 66, 204);
/* oklch */ color: oklch(48.8% 0.203 282.8);
Tailwind
colors: {
  custom: {
    50: '#9278dd',
    500: '#5742cc',
    950: '#000000',
  },
}
SCSS
$custom: #5742cc;
$custom-light: #9278dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5742cc",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 249.13,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48828,
    "c": 0.20258,
    "h": 282.8
  },
  "luminance": 0.10282
}

Semantic roles & 50–950 ramp

primary
#5742CC
secondary
#CAD397
accent
#E147C9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5742CC

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

Preview Lab → · Contrast checker → · Palette generator →

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