#5731BF#5731BF

#5731BF is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.4% C 0.206 H 287.4°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5731BF
RGBrgb(87, 49, 191)
HSLhsl(256, 59%, 47%)
HSVhsv(256, 74%, 75%)
CMYKcmyk(54.5%, 74.3%, 0%, 25.1%)
CIE-LABlab(33.95, 51.44, -68.24)
CIE-LCHlch(33.95, 85.46, 307.01°)
OKLaboklab(45.35% 0.0613 -0.1963)
OKLCHoklch(45.35% 0.206 287.4)
XYZxyz(14.4300, 7.9837, 50.0608)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731BF #99BF31
analogous
#3152BF #5731BF #9E31BF
triadic
#5731BF #BF5731 #31BF57
tetradic
#5731BF #BF3152 #99BF31 #31BF9E
square
#5731BF #BF3152 #99BF31 #31BF9E
split-complementary
#5731BF #BF9E31 #52BF31
monochromatic
#2B185E #41258E #5731BF #7A59D4 #A18AE1

Accessibility & contrast

On white

8.09
#5731BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5731BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731BF
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731BF#FFFFFF#000000##FFFFFF
##5731BF1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#2B5876
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5731bf;
/* rgb */ color: rgb(87, 49, 191);
/* oklch */ color: oklch(45.4% 0.206 287.4);
Tailwind
colors: {
  custom: {
    50: '#916dd3',
    500: '#5731bf',
    950: '#000000',
  },
}
SCSS
$custom: #5731bf;
$custom-light: #916dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5731bf",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 256.056,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4535,
    "c": 0.20568,
    "h": 287.4
  },
  "luminance": 0.07984
}

Semantic roles & 50–950 ramp

primary
#5731BF
secondary
#B7CB81
accent
#E245B8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5731BF

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

Preview Lab → · Contrast checker → · Palette generator →

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