#5741BF#5741BF

#5741BF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.6% C 0.188 H 284.7°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5741BF
RGBrgb(87, 65, 191)
HSLhsl(250, 50%, 50%)
HSVhsv(250, 66%, 75%)
CMYKcmyk(54.5%, 66%, 0%, 25.1%)
CIE-LABlab(37.05, 42.84, -63.16)
CIE-LCHlch(37.05, 76.32, 304.15°)
OKLaboklab(47.57% 0.0477 -0.1815)
OKLCHoklch(47.57% 0.188 284.7)
XYZxyz(15.2219, 9.5676, 50.3247)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741BF #A9BF41
analogous
#416ABF #5741BF #9641BF
triadic
#5741BF #BF5741 #41BF57
tetradic
#5741BF #BF416A #A9BF41 #41BF96
square
#5741BF #BF416A #A9BF41 #41BF96
split-complementary
#5741BF #BF9641 #6ABF41
monochromatic
#2D2264 #423192 #5741BF #7F6FCE #A89DDE

Accessibility & contrast

On white

7.21
#5741BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5741BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5741BF
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741BF#FFFFFF#000000##FFFFFF
##5741BF1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#0053BD
Tritanopia (blue-blind)
#29617A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5741bf;
/* rgb */ color: rgb(87, 65, 191);
/* oklch */ color: oklch(47.6% 0.188 284.7);
Tailwind
colors: {
  custom: {
    50: '#9077d3',
    500: '#5741bf',
    950: '#000000',
  },
}
SCSS
$custom: #5741bf;
$custom-light: #9077d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5741bf",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 191
  },
  "hsl": {
    "h": 250.476,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47566,
    "c": 0.18762,
    "h": 284.7
  },
  "luminance": 0.09568
}

Semantic roles & 50–950 ramp

primary
#5741BF
secondary
#C0CA92
accent
#D94FC1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5741BF

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

Preview Lab → · Contrast checker → · Palette generator →

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