#5740CF#5740CF

#5740CF is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.8% C 0.209 H 282.8°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#5740CF
RGBrgb(87, 64, 207)
HSLhsl(250, 60%, 53%)
HSVhsv(250, 69%, 81%)
CMYKcmyk(58%, 69.1%, 0%, 18.8%)
CIE-LABlab(38.19, 48.25, -70.61)
CIE-LCHlch(38.19, 85.52, 304.34°)
OKLaboklab(48.8% 0.0462 -0.2033)
OKLCHoklch(48.8% 0.209 282.8)
XYZxyz(17.0229, 10.1969, 60.0906)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740CF #B8CF40
analogous
#4070CF #5740CF #9E40CF
triadic
#5740CF #CF5740 #40CF57
tetradic
#5740CF #CF4070 #B8CF40 #40CF9E
square
#5740CF #CF4070 #B8CF40 #40CF9E
split-complementary
#5740CF #CF9E40 #70CF40
monochromatic
#2C1E77 #3E2AA8 #5740CF #8271DB #ADA2E8

Accessibility & contrast

On white

6.91
#5740CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5740CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740CF
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740CF#FFFFFF#000000##FFFFFF
##5740CF1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0055CC
Tritanopia (blue-blind)
#0D6683
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5740cf;
/* rgb */ color: rgb(87, 64, 207);
/* oklch */ color: oklch(48.8% 0.209 282.8);
Tailwind
colors: {
  custom: {
    50: '#9377df',
    500: '#5740cf',
    950: '#000000',
  },
}
SCSS
$custom: #5740cf;
$custom-light: #9377df;
$custom-dark: #000000;
JSON
{
  "hex": "#5740cf",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 249.65,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.488,
    "c": 0.20851,
    "h": 282.8
  },
  "luminance": 0.10198
}

Semantic roles & 50–950 ramp

primary
#5740CF
secondary
#CAD497
accent
#E345CA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5740CF

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

Preview Lab → · Contrast checker → · Palette generator →

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