#5740D8#5740D8

#5740D8 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.6% C 0.219 H 281.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5740D8
RGBrgb(87, 64, 216)
HSLhsl(249, 66%, 55%)
HSVhsv(249, 70%, 85%)
CMYKcmyk(59.7%, 70.4%, 0%, 15.3%)
CIE-LABlab(38.98, 50.95, -74.51)
CIE-LCHlch(38.98, 90.26, 304.37°)
OKLaboklab(49.61% 0.0446 -0.2147)
OKLCHoklch(49.61% 0.219 281.7)
XYZxyz(18.1547, 10.6496, 66.0513)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740D8 #C1D840
analogous
#4075D8 #5740D8 #A340D8
triadic
#5740D8 #D85740 #40D857
tetradic
#5740D8 #D84075 #C1D840 #40D8A3
square
#5740D8 #D84075 #C1D840 #40D8A3
split-complementary
#5740D8 #D8A340 #75D840
monochromatic
#2A1B83 #3B25B6 #5740D8 #8473E2 #B0A6ED

Accessibility & contrast

On white

6.71
#5740D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5740D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740D8
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740D8#FFFFFF#000000##FFFFFF
##5740D81.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DD
Deuteranopia (green-blind)
#0056D5
Tritanopia (blue-blind)
#006988
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5740d8;
/* rgb */ color: rgb(87, 64, 216);
/* oklch */ color: oklch(49.6% 0.219 281.7);
Tailwind
colors: {
  custom: {
    50: '#9477e5',
    500: '#5740d8',
    950: '#000000',
  },
}
SCSS
$custom: #5740d8;
$custom-light: #9477e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5740d8",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 249.079,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49607,
    "c": 0.21931,
    "h": 281.7
  },
  "luminance": 0.10651
}

Semantic roles & 50–950 ramp

primary
#5740D8
secondary
#D0DA9A
accent
#E93FCF
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5740D8

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

Preview Lab → · Contrast checker → · Palette generator →

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