#5742C8#5742C8

#5742C8 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 48.5% C 0.198 H 283.3°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#5742C8
RGBrgb(87, 66, 200)
HSLhsl(249, 55%, 52%)
HSVhsv(249, 67%, 78%)
CMYKcmyk(56.5%, 67%, 0%, 21.6%)
CIE-LABlab(38.01, 45.01, -66.86)
CIE-LCHlch(38.01, 80.60, 303.95°)
OKLaboklab(48.48% 0.0456 -0.1923)
OKLCHoklch(48.48% 0.198 283.3)
XYZxyz(16.3008, 10.0918, 55.7213)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742C8 #B3C842
analogous
#4270C8 #5742C8 #9A42C8
triadic
#5742C8 #C85742 #42C857
tetradic
#5742C8 #C84270 #B3C842 #42C89A
square
#5742C8 #C84270 #B3C842 #42C89A
split-complementary
#5742C8 #C89A42 #70C842
monochromatic
#2D206F #402E9F #5742C8 #8171D6 #ABA1E4

Accessibility & contrast

On white

6.96
#5742C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5742C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742C8
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742C8#FFFFFF#000000##FFFFFF
##5742C81.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#1D647F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5742c8;
/* rgb */ color: rgb(87, 66, 200);
/* oklch */ color: oklch(48.5% 0.198 283.3);
Tailwind
colors: {
  custom: {
    50: '#9178da',
    500: '#5742c8',
    950: '#000000',
  },
}
SCSS
$custom: #5742c8;
$custom-light: #9178da;
$custom-dark: #000000;
JSON
{
  "hex": "#5742c8",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 249.403,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48483,
    "c": 0.19765,
    "h": 283.3
  },
  "luminance": 0.10093
}

Semantic roles & 50–950 ramp

primary
#5742C8
secondary
#C7D096
accent
#DE4AC7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5742C8

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

Preview Lab → · Contrast checker → · Palette generator →

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