#5742DC#5742DC

#5742DC is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.2% C 0.222 H 281.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#5742DC
RGBrgb(87, 66, 220)
HSLhsl(248, 69%, 56%)
HSVhsv(248, 70%, 86%)
CMYKcmyk(60.5%, 70%, 0%, 13.7%)
CIE-LABlab(39.73, 51.08, -75.58)
CIE-LCHlch(39.73, 91.22, 304.05°)
OKLaboklab(50.25% 0.0424 -0.2179)
OKLCHoklch(50.25% 0.222 281)
XYZxyz(18.7929, 11.0886, 68.8463)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742DC #C7DC42
analogous
#427ADC #5742DC #A442DC
triadic
#5742DC #DC5742 #42DC57
tetradic
#5742DC #DC427A #C7DC42 #42DCA4
square
#5742DC #DC427A #C7DC42 #42DCA4
split-complementary
#5742DC #DCA442 #7ADC42
monochromatic
#291A8A #3823BE #5742DC #8576E6 #B3A9EF

Accessibility & contrast

On white

6.53
#5742DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5742DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742DC
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742DC#FFFFFF#000000##FFFFFF
##5742DC1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E1
Deuteranopia (green-blind)
#0058D9
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5742dc;
/* rgb */ color: rgb(87, 66, 220);
/* oklch */ color: oklch(50.2% 0.222 281.0);
Tailwind
colors: {
  custom: {
    50: '#9579e8',
    500: '#5742dc',
    950: '#000000',
  },
}
SCSS
$custom: #5742dc;
$custom-light: #9579e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5742dc",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 248.182,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50247,
    "c": 0.22196,
    "h": 281
  },
  "luminance": 0.1109
}

Semantic roles & 50–950 ramp

primary
#5742DC
secondary
#D4DD9D
accent
#EC3CD4
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5742DC

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

Preview Lab → · Contrast checker → · Palette generator →

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