#5731BB#5731BB

#5731BB is a dark, highly saturated violet. Relative luminance 0.078; OKLCH L 45.0% C 0.201 H 288.1°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#5731BB
RGBrgb(87, 49, 187)
HSLhsl(257, 58%, 46%)
HSVhsv(257, 74%, 73%)
CMYKcmyk(53.5%, 73.8%, 0%, 26.7%)
CIE-LABlab(33.58, 50.31, -66.49)
CIE-LCHlch(33.58, 83.37, 307.11°)
OKLaboklab(44.98% 0.0623 -0.1912)
OKLCHoklch(44.98% 0.201 288.1)
XYZxyz(13.9958, 7.8100, 47.7741)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731BB #95BB31
analogous
#3150BB #5731BB #9C31BB
triadic
#5731BB #BB5731 #31BB57
tetradic
#5731BB #BB3150 #95BB31 #31BB9C
square
#5731BB #BB3150 #95BB31 #31BB9C
split-complementary
#5731BB #BB9C31 #50BB31
monochromatic
#2A185A #40248B #5731BB #7956D3 #9F87E0

Accessibility & contrast

On white

8.20
#5731BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5731BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731BB
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731BB#FFFFFF#000000##FFFFFF
##5731BB1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#2F5773
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5731bb;
/* rgb */ color: rgb(87, 49, 187);
/* oklch */ color: oklch(45.0% 0.201 288.1);
Tailwind
colors: {
  custom: {
    50: '#916dd1',
    500: '#5731bb',
    950: '#000000',
  },
}
SCSS
$custom: #5731bb;
$custom-light: #916dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5731bb",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 256.522,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44981,
    "c": 0.20107,
    "h": 288.1
  },
  "luminance": 0.07811
}

Semantic roles & 50–950 ramp

primary
#5731BB
secondary
#B5C97F
accent
#E246B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5731BB

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

Preview Lab → · Contrast checker → · Palette generator →

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