#5740CE#5740CE

#5740CE is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.7% C 0.207 H 282.9°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5740CE
RGBrgb(87, 64, 206)
HSLhsl(250, 59%, 53%)
HSVhsv(250, 69%, 81%)
CMYKcmyk(57.8%, 68.9%, 0%, 19.2%)
CIE-LABlab(38.11, 47.94, -70.18)
CIE-LCHlch(38.11, 84.99, 304.34°)
OKLaboklab(48.71% 0.0464 -0.202)
OKLCHoklch(48.71% 0.207 282.9)
XYZxyz(16.9010, 10.1482, 59.4488)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740CE #B7CE40
analogous
#4070CE #5740CE #9E40CE
triadic
#5740CE #CE5740 #40CE57
tetradic
#5740CE #CE4070 #B7CE40 #40CE9E
square
#5740CE #CE4070 #B7CE40 #40CE9E
split-complementary
#5740CE #CE9E40 #70CE40
monochromatic
#2C1E75 #3F2BA6 #5740CE #8271DA #ADA1E7

Accessibility & contrast

On white

6.93
#5740CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5740CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740CE
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740CE#FFFFFF#000000##FFFFFF
##5740CE1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED2
Deuteranopia (green-blind)
#0055CB
Tritanopia (blue-blind)
#106582
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5740ce;
/* rgb */ color: rgb(87, 64, 206);
/* oklch */ color: oklch(48.7% 0.207 282.9);
Tailwind
colors: {
  custom: {
    50: '#9377de',
    500: '#5740ce',
    950: '#000000',
  },
}
SCSS
$custom: #5740ce;
$custom-light: #9377de;
$custom-dark: #000000;
JSON
{
  "hex": "#5740ce",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 249.718,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48712,
    "c": 0.2073,
    "h": 282.9
  },
  "luminance": 0.10149
}

Semantic roles & 50–950 ramp

primary
#5740CE
secondary
#CAD496
accent
#E245C9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5740CE

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

Preview Lab → · Contrast checker → · Palette generator →

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