#5742CB#5742CB

#5742CB is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.7% C 0.201 H 283.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#5742CB
RGBrgb(87, 66, 203)
HSLhsl(249, 57%, 53%)
HSVhsv(249, 67%, 80%)
CMYKcmyk(57.1%, 67.5%, 0%, 20.4%)
CIE-LABlab(38.26, 45.92, -68.19)
CIE-LCHlch(38.26, 82.21, 303.96°)
OKLaboklab(48.74% 0.0452 -0.1962)
OKLCHoklch(48.74% 0.201 283)
XYZxyz(16.6549, 10.2334, 57.5860)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742CB #B6CB42
analogous
#4272CB #5742CB #9B42CB
triadic
#5742CB #CB5742 #42CB57
tetradic
#5742CB #CB4272 #B6CB42 #42CB9B
square
#5742CB #CB4272 #B6CB42 #42CB9B
split-complementary
#5742CB #CB9B42 #72CB42
monochromatic
#2C2073 #3F2DA3 #5742CB #8272D8 #ACA2E5

Accessibility & contrast

On white

6.89
#5742CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5742CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742CB
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742CB#FFFFFF#000000##FFFFFF
##5742CB1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#176581
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5742cb;
/* rgb */ color: rgb(87, 66, 203);
/* oklch */ color: oklch(48.7% 0.201 283.0);
Tailwind
colors: {
  custom: {
    50: '#9278dc',
    500: '#5742cb',
    950: '#000000',
  },
}
SCSS
$custom: #5742cb;
$custom-light: #9278dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5742cb",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 249.197,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48742,
    "c": 0.20136,
    "h": 283
  },
  "luminance": 0.10234
}

Semantic roles & 50–950 ramp

primary
#5742CB
secondary
#C9D297
accent
#E048C9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5742CB

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

Preview Lab → · Contrast checker → · Palette generator →

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