#5740D2#5740D2

#5740D2 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.1% C 0.212 H 282.4°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5740D2
RGBrgb(87, 64, 210)
HSLhsl(249, 62%, 54%)
HSVhsv(249, 70%, 82%)
CMYKcmyk(58.6%, 69.5%, 0%, 17.6%)
CIE-LABlab(38.45, 49.15, -71.92)
CIE-LCHlch(38.45, 87.11, 304.35°)
OKLaboklab(49.07% 0.0457 -0.2071)
OKLCHoklch(49.07% 0.212 282.4)
XYZxyz(17.3931, 10.3450, 62.0405)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740D2 #BBD240
analogous
#4072D2 #5740D2 #A040D2
triadic
#5740D2 #D25740 #40D257
tetradic
#5740D2 #D24072 #BBD240 #40D2A0
square
#5740D2 #D24072 #BBD240 #40D2A0
split-complementary
#5740D2 #D2A040 #72D240
monochromatic
#2C1D7B #3D29AC #5740D2 #8372DE #AEA3E9

Accessibility & contrast

On white

6.84
#5740D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5740D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740D2
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740D2#FFFFFF#000000##FFFFFF
##5740D21.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD6
Deuteranopia (green-blind)
#0055CF
Tritanopia (blue-blind)
#026784
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5740d2;
/* rgb */ color: rgb(87, 64, 210);
/* oklch */ color: oklch(49.1% 0.212 282.4);
Tailwind
colors: {
  custom: {
    50: '#9377e1',
    500: '#5740d2',
    950: '#000000',
  },
}
SCSS
$custom: #5740d2;
$custom-light: #9377e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5740d2",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 249.452,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49067,
    "c": 0.21212,
    "h": 282.4
  },
  "luminance": 0.10346
}

Semantic roles & 50–950 ramp

primary
#5740D2
secondary
#CCD698
accent
#E543CB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5740D2

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

Preview Lab → · Contrast checker → · Palette generator →

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