#5740D9#5740D9

#5740D9 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.7% C 0.221 H 281.6°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5740D9
RGBrgb(87, 64, 217)
HSLhsl(249, 67%, 55%)
HSVhsv(249, 71%, 85%)
CMYKcmyk(59.9%, 70.5%, 0%, 14.9%)
CIE-LABlab(39.07, 51.25, -74.93)
CIE-LCHlch(39.07, 90.78, 304.37°)
OKLaboklab(49.7% 0.0444 -0.216)
OKLCHoklch(49.7% 0.221 281.6)
XYZxyz(18.2843, 10.7015, 66.7343)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740D9 #C2D940
analogous
#4075D9 #5740D9 #A440D9
triadic
#5740D9 #D95740 #40D957
tetradic
#5740D9 #D94075 #C2D940 #40D9A4
square
#5740D9 #D94075 #C2D940 #40D9A4
split-complementary
#5740D9 #D9A440 #75D940
monochromatic
#2A1A84 #3B24B7 #5740D9 #8473E3 #B1A6ED

Accessibility & contrast

On white

6.69
#5740D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5740D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740D9
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740D9#FFFFFF#000000##FFFFFF
##5740D91.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5740d9;
/* rgb */ color: rgb(87, 64, 217);
/* oklch */ color: oklch(49.7% 0.221 281.6);
Tailwind
colors: {
  custom: {
    50: '#9477e6',
    500: '#5740d9',
    950: '#000000',
  },
}
SCSS
$custom: #5740d9;
$custom-light: #9477e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5740d9",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 249.02,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49698,
    "c": 0.2205,
    "h": 281.6
  },
  "luminance": 0.10703
}

Semantic roles & 50–950 ramp

primary
#5740D9
secondary
#D1DA9A
accent
#EA3ED0
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5740D9

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

Preview Lab → · Contrast checker → · Palette generator →

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