#5740CC#5740CC

#5740CC is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.5% C 0.205 H 283.2°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#5740CC
RGBrgb(87, 64, 204)
HSLhsl(250, 58%, 53%)
HSVhsv(250, 69%, 80%)
CMYKcmyk(57.4%, 68.6%, 0%, 20%)
CIE-LABlab(37.93, 47.34, -69.30)
CIE-LCHlch(37.93, 83.93, 304.34°)
OKLaboklab(48.54% 0.0467 -0.1995)
OKLCHoklch(48.54% 0.205 283.2)
XYZxyz(16.6596, 10.0516, 58.1773)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740CC #B5CC40
analogous
#406FCC #5740CC #9D40CC
triadic
#5740CC #CC5740 #40CC57
tetradic
#5740CC #CC406F #B5CC40 #40CC9D
square
#5740CC #CC406F #B5CC40 #40CC9D
split-complementary
#5740CC #CC9D40 #6FCC40
monochromatic
#2D1F73 #3F2CA3 #5740CC #8170D9 #ACA1E6

Accessibility & contrast

On white

6.98
#5740CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5740CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740CC
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740CC#FFFFFF#000000##FFFFFF
##5740CC1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0055C9
Tritanopia (blue-blind)
#166581
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5740cc;
/* rgb */ color: rgb(87, 64, 204);
/* oklch */ color: oklch(48.5% 0.205 283.2);
Tailwind
colors: {
  custom: {
    50: '#9277dd',
    500: '#5740cc',
    950: '#000000',
  },
}
SCSS
$custom: #5740cc;
$custom-light: #9277dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5740cc",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 249.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48536,
    "c": 0.20487,
    "h": 283.2
  },
  "luminance": 0.10053
}

Semantic roles & 50–950 ramp

primary
#5740CC
secondary
#C8D295
accent
#E147C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5740CC

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

Preview Lab → · Contrast checker → · Palette generator →

#5740CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva