#5740BB#5740BB

#5740BB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.1% C 0.184 H 285.5°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5740BB
RGBrgb(87, 64, 187)
HSLhsl(251, 49%, 49%)
HSVhsv(251, 66%, 73%)
CMYKcmyk(53.5%, 65.8%, 0%, 26.7%)
CIE-LABlab(36.52, 42.20, -61.69)
CIE-LCHlch(36.52, 74.74, 304.38°)
OKLaboklab(47.08% 0.0491 -0.1771)
OKLCHoklch(47.08% 0.184 285.5)
XYZxyz(14.7308, 9.2801, 48.0191)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740BB #A4BB40
analogous
#4066BB #5740BB #9540BB
triadic
#5740BB #BB5740 #40BB57
tetradic
#5740BB #BB4066 #A4BB40 #40BB95
square
#5740BB #BB4066 #A4BB40 #40BB95
split-complementary
#5740BB #BB9540 #66BB40
monochromatic
#2D2160 #42308D #5740BB #7E6CCD #A699DC

Accessibility & contrast

On white

7.35
#5740BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5740BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5740BB
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740BB#FFFFFF#000000##FFFFFF
##5740BB1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BF
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#2E5F78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5740bb;
/* rgb */ color: rgb(87, 64, 187);
/* oklch */ color: oklch(47.1% 0.184 285.5);
Tailwind
colors: {
  custom: {
    50: '#9076d0',
    500: '#5740bb',
    950: '#000000',
  },
}
SCSS
$custom: #5740bb;
$custom-light: #9076d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5740bb",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 251.22,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47077,
    "c": 0.18382,
    "h": 285.5
  },
  "luminance": 0.09281
}

Semantic roles & 50–950 ramp

primary
#5740BB
secondary
#BDC88F
accent
#D94FBF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5740BB

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

Preview Lab → · Contrast checker → · Palette generator →

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