#5740CD#5740CD

#5740CD is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.206 H 283.0°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5740CD
RGBrgb(87, 64, 205)
HSLhsl(250, 59%, 53%)
HSVhsv(250, 69%, 80%)
CMYKcmyk(57.6%, 68.8%, 0%, 19.6%)
CIE-LABlab(38.02, 47.64, -69.74)
CIE-LCHlch(38.02, 84.46, 304.34°)
OKLaboklab(48.62% 0.0465 -0.2008)
OKLCHoklch(48.62% 0.206 283)
XYZxyz(16.7799, 10.0997, 58.8110)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740CD #B6CD40
analogous
#4070CD #5740CD #9D40CD
triadic
#5740CD #CD5740 #40CD57
tetradic
#5740CD #CD4070 #B6CD40 #40CD9D
square
#5740CD #CD4070 #B6CD40 #40CD9D
split-complementary
#5740CD #CD9D40 #70CD40
monochromatic
#2C1E74 #3F2BA5 #5740CD #8271DA #ACA1E6

Accessibility & contrast

On white

6.95
#5740CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5740CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740CD
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740CD#FFFFFF#000000##FFFFFF
##5740CD1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED1
Deuteranopia (green-blind)
#0055CA
Tritanopia (blue-blind)
#136582
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5740cd;
/* rgb */ color: rgb(87, 64, 205);
/* oklch */ color: oklch(48.6% 0.206 283.0);
Tailwind
colors: {
  custom: {
    50: '#9277dd',
    500: '#5740cd',
    950: '#000000',
  },
}
SCSS
$custom: #5740cd;
$custom-light: #9277dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5740cd",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 249.787,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48624,
    "c": 0.20608,
    "h": 283
  },
  "luminance": 0.10101
}

Semantic roles & 50–950 ramp

primary
#5740CD
secondary
#C9D396
accent
#E246C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5740CD

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

Preview Lab → · Contrast checker → · Palette generator →

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