#5740D7#5740D7

#5740D7 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.5% C 0.218 H 281.8°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#5740D7
RGBrgb(87, 64, 215)
HSLhsl(249, 65%, 55%)
HSVhsv(249, 70%, 84%)
CMYKcmyk(59.5%, 70.2%, 0%, 15.7%)
CIE-LABlab(38.90, 50.65, -74.08)
CIE-LCHlch(38.90, 89.74, 304.36°)
OKLaboklab(49.52% 0.0448 -0.2135)
OKLCHoklch(49.52% 0.218 281.8)
XYZxyz(18.0258, 10.5981, 65.3726)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740D7 #C0D740
analogous
#4075D7 #5740D7 #A340D7
triadic
#5740D7 #D75740 #40D757
tetradic
#5740D7 #D74075 #C0D740 #40D7A3
square
#5740D7 #D74075 #C0D740 #40D7A3
split-complementary
#5740D7 #D7A340 #75D740
monochromatic
#2B1B81 #3B26B4 #5740D7 #8473E2 #B0A5EC

Accessibility & contrast

On white

6.73
#5740D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5740D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740D7
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740D7#FFFFFF#000000##FFFFFF
##5740D71.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DC
Deuteranopia (green-blind)
#0056D4
Tritanopia (blue-blind)
#006987
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5740d7;
/* rgb */ color: rgb(87, 64, 215);
/* oklch */ color: oklch(49.5% 0.218 281.8);
Tailwind
colors: {
  custom: {
    50: '#9477e5',
    500: '#5740d7',
    950: '#000000',
  },
}
SCSS
$custom: #5740d7;
$custom-light: #9477e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5740d7",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 249.139,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49516,
    "c": 0.21812,
    "h": 281.8
  },
  "luminance": 0.10599
}

Semantic roles & 50–950 ramp

primary
#5740D7
secondary
#D0D99A
accent
#E83FCF
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5740D7

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

Preview Lab → · Contrast checker → · Palette generator →

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