#5741BB#5741BB

#5741BB is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.2% C 0.183 H 285.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5741BB
RGBrgb(87, 65, 187)
HSLhsl(251, 48%, 49%)
HSVhsv(251, 65%, 73%)
CMYKcmyk(53.5%, 65.2%, 0%, 26.7%)
CIE-LABlab(36.73, 41.63, -61.34)
CIE-LCHlch(36.73, 74.13, 304.16°)
OKLaboklab(47.23% 0.0481 -0.1761)
OKLCHoklch(47.23% 0.183 285.3)
XYZxyz(14.7877, 9.3939, 48.0381)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741BB #A5BB41
analogous
#4168BB #5741BB #9441BB
triadic
#5741BB #BB5741 #41BB57
tetradic
#5741BB #BB4168 #A5BB41 #41BB94
square
#5741BB #BB4168 #A5BB41 #41BB94
split-complementary
#5741BB #BB9441 #68BB41
monochromatic
#2D2160 #42318E #5741BB #7E6DCC #A69ADC

Accessibility & contrast

On white

7.29
#5741BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5741BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5741BB
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741BB#FFFFFF#000000##FFFFFF
##5741BB1.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)
#005ABF
Deuteranopia (green-blind)
#0053B9
Tritanopia (blue-blind)
#2D5F78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5741bb;
/* rgb */ color: rgb(87, 65, 187);
/* oklch */ color: oklch(47.2% 0.183 285.3);
Tailwind
colors: {
  custom: {
    50: '#8f77d0',
    500: '#5741bb',
    950: '#000000',
  },
}
SCSS
$custom: #5741bb;
$custom-light: #8f77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5741bb",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 187
  },
  "hsl": {
    "h": 250.82,
    "s": 48.413,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47232,
    "c": 0.18257,
    "h": 285.3
  },
  "luminance": 0.09395
}

Semantic roles & 50–950 ramp

primary
#5741BB
secondary
#BEC890
accent
#D850BF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5741BB

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

Preview Lab → · Contrast checker → · Palette generator →

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