#5742CE#5742CE

#5742CE is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.0% C 0.205 H 282.6°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5742CE
RGBrgb(87, 66, 206)
HSLhsl(249, 59%, 53%)
HSVhsv(249, 68%, 81%)
CMYKcmyk(57.8%, 68%, 0%, 19.2%)
CIE-LABlab(38.51, 46.83, -69.51)
CIE-LCHlch(38.51, 83.82, 303.97°)
OKLaboklab(49% 0.0447 -0.2001)
OKLCHoklch(49% 0.205 282.6)
XYZxyz(17.0158, 10.3778, 59.4870)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742CE #B9CE42
analogous
#4273CE #5742CE #9D42CE
triadic
#5742CE #CE5742 #42CE57
tetradic
#5742CE #CE4273 #B9CE42 #42CE9D
square
#5742CE #CE4273 #B9CE42 #42CE9D
split-complementary
#5742CE #CE9D42 #73CE42
monochromatic
#2C1F77 #3E2BA7 #5742CE #8273DB #ADA3E7

Accessibility & contrast

On white

6.83
#5742CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5742CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742CE
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742CE#FFFFFF#000000##FFFFFF
##5742CE1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0056CB
Tritanopia (blue-blind)
#106783
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5742ce;
/* rgb */ color: rgb(87, 66, 206);
/* oklch */ color: oklch(49.0% 0.205 282.6);
Tailwind
colors: {
  custom: {
    50: '#9278de',
    500: '#5742ce',
    950: '#000000',
  },
}
SCSS
$custom: #5742ce;
$custom-light: #9278de;
$custom-dark: #000000;
JSON
{
  "hex": "#5742ce",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 249,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49002,
    "c": 0.20504,
    "h": 282.6
  },
  "luminance": 0.10379
}

Semantic roles & 50–950 ramp

primary
#5742CE
secondary
#CBD498
accent
#E246CB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5742CE

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

Preview Lab → · Contrast checker → · Palette generator →

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