#5742CD#5742CD

#5742CD is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 48.9% C 0.204 H 282.7°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#5742CD
RGBrgb(87, 66, 205)
HSLhsl(249, 58%, 53%)
HSVhsv(249, 68%, 80%)
CMYKcmyk(57.6%, 67.8%, 0%, 19.6%)
CIE-LABlab(38.43, 46.53, -69.07)
CIE-LCHlch(38.43, 83.28, 303.97°)
OKLaboklab(48.92% 0.0449 -0.1988)
OKLCHoklch(48.92% 0.204 282.7)
XYZxyz(16.8947, 10.3294, 58.8493)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742CD #B8CD42
analogous
#4272CD #5742CD #9D42CD
triadic
#5742CD #CD5742 #42CD57
tetradic
#5742CD #CD4272 #B8CD42 #42CD9D
square
#5742CD #CD4272 #B8CD42 #42CD9D
split-complementary
#5742CD #CD9D42 #72CD42
monochromatic
#2C1F76 #3E2CA6 #5742CD #8272DA #ADA3E7

Accessibility & contrast

On white

6.85
#5742CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5742CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742CD
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742CD#FFFFFF#000000##FFFFFF
##5742CD1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0056CA
Tritanopia (blue-blind)
#136682
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5742cd;
/* rgb */ color: rgb(87, 66, 205);
/* oklch */ color: oklch(48.9% 0.204 282.7);
Tailwind
colors: {
  custom: {
    50: '#9278dd',
    500: '#5742cd',
    950: '#000000',
  },
}
SCSS
$custom: #5742cd;
$custom-light: #9278dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5742cd",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 249.065,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48915,
    "c": 0.20382,
    "h": 282.7
  },
  "luminance": 0.1033
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5742CD

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

Preview Lab → · Contrast checker → · Palette generator →

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