#5742CA#5742CA

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

Color values

HEX#5742CA
RGBrgb(87, 66, 202)
HSLhsl(249, 56%, 53%)
HSVhsv(249, 67%, 79%)
CMYKcmyk(56.9%, 67.3%, 0%, 20.8%)
CIE-LABlab(38.17, 45.62, -67.75)
CIE-LCHlch(38.17, 81.67, 303.95°)
OKLaboklab(48.66% 0.0453 -0.1949)
OKLCHoklch(48.66% 0.2 283.1)
XYZxyz(16.5361, 10.1859, 56.9604)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742CA #B5CA42
analogous
#4271CA #5742CA #9B42CA
triadic
#5742CA #CA5742 #42CA57
tetradic
#5742CA #CA4271 #B5CA42 #42CA9B
square
#5742CA #CA4271 #B5CA42 #42CA9B
split-complementary
#5742CA #CA9B42 #71CA42
monochromatic
#2D2072 #3F2DA2 #5742CA #8172D7 #ACA2E5

Accessibility & contrast

On white

6.91
#5742CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5742CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742CA
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742CA#FFFFFF#000000##FFFFFF
##5742CA1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0055C7
Tritanopia (blue-blind)
#196580
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5742ca;
/* rgb */ color: rgb(87, 66, 202);
/* oklch */ color: oklch(48.7% 0.200 283.1);
Tailwind
colors: {
  custom: {
    50: '#9278db',
    500: '#5742ca',
    950: '#000000',
  },
}
SCSS
$custom: #5742ca;
$custom-light: #9278db;
$custom-dark: #000000;
JSON
{
  "hex": "#5742ca",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 249.265,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48655,
    "c": 0.20012,
    "h": 283.1
  },
  "luminance": 0.10187
}

Semantic roles & 50–950 ramp

primary
#5742CA
secondary
#C8D196
accent
#DF48C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5742CA

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

Preview Lab → · Contrast checker → · Palette generator →

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