#5740BF#5740BF

#5740BF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.4% C 0.189 H 284.9°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5740BF
RGBrgb(87, 64, 191)
HSLhsl(251, 50%, 50%)
HSVhsv(251, 66%, 75%)
CMYKcmyk(54.5%, 66.5%, 0%, 25.1%)
CIE-LABlab(36.84, 43.41, -63.50)
CIE-LCHlch(36.84, 76.93, 304.36°)
OKLaboklab(47.41% 0.0486 -0.1825)
OKLCHoklch(47.41% 0.189 284.9)
XYZxyz(15.1650, 9.4538, 50.3058)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740BF #A8BF40
analogous
#4069BF #5740BF #9640BF
triadic
#5740BF #BF5740 #40BF57
tetradic
#5740BF #BF4069 #A8BF40 #40BF96
square
#5740BF #BF4069 #A8BF40 #40BF96
split-complementary
#5740BF #BF9640 #69BF40
monochromatic
#2D2163 #423191 #5740BF #7F6ECE #A89CDE

Accessibility & contrast

On white

7.26
#5740BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5740BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5740BF
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740BF#FFFFFF#000000##FFFFFF
##5740BF1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#0053BC
Tritanopia (blue-blind)
#29607A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5740bf;
/* rgb */ color: rgb(87, 64, 191);
/* oklch */ color: oklch(47.4% 0.189 284.9);
Tailwind
colors: {
  custom: {
    50: '#9076d3',
    500: '#5740bf',
    950: '#000000',
  },
}
SCSS
$custom: #5740bf;
$custom-light: #9076d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5740bf",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 250.866,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.47414,
    "c": 0.18883,
    "h": 284.9
  },
  "luminance": 0.09455
}

Semantic roles & 50–950 ramp

primary
#5740BF
secondary
#C0CA91
accent
#D94EC0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5740BF

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

Preview Lab → · Contrast checker → · Palette generator →

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