#5740BE#5740BE

#5740BE is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.3% C 0.188 H 285.1°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5740BE
RGBrgb(87, 64, 190)
HSLhsl(251, 50%, 50%)
HSVhsv(251, 66%, 75%)
CMYKcmyk(54.2%, 66.3%, 0%, 25.5%)
CIE-LABlab(36.76, 43.11, -63.05)
CIE-LCHlch(36.76, 76.38, 304.36°)
OKLaboklab(47.33% 0.0487 -0.1811)
OKLCHoklch(47.33% 0.188 285.1)
XYZxyz(15.0553, 9.4099, 49.7282)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740BE #A7BE40
analogous
#4068BE #5740BE #9640BE
triadic
#5740BE #BE5740 #40BE57
tetradic
#5740BE #BE4068 #A7BE40 #40BE96
square
#5740BE #BE4068 #A7BE40 #40BE96
split-complementary
#5740BE #BE9640 #68BE40
monochromatic
#2D2162 #423190 #5740BE #7F6DCE #A79BDD

Accessibility & contrast

On white

7.29
#5740BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5740BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5740BE
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740BE#FFFFFF#000000##FFFFFF
##5740BE1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC2
Deuteranopia (green-blind)
#0053BC
Tritanopia (blue-blind)
#2B6079
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5740be;
/* rgb */ color: rgb(87, 64, 190);
/* oklch */ color: oklch(47.3% 0.188 285.1);
Tailwind
colors: {
  custom: {
    50: '#9076d3',
    500: '#5740be',
    950: '#000000',
  },
}
SCSS
$custom: #5740be;
$custom-light: #9076d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5740be",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 250.952,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47329,
    "c": 0.18758,
    "h": 285.1
  },
  "luminance": 0.09411
}

Semantic roles & 50–950 ramp

primary
#5740BE
secondary
#BFC990
accent
#D94FC0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5740BE

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

Preview Lab → · Contrast checker → · Palette generator →

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