#5731BE#5731BE

#5731BE is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.205 H 287.5°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5731BE
RGBrgb(87, 49, 190)
HSLhsl(256, 59%, 47%)
HSVhsv(256, 74%, 75%)
CMYKcmyk(54.2%, 74.2%, 0%, 25.5%)
CIE-LABlab(33.86, 51.16, -67.81)
CIE-LCHlch(33.86, 84.94, 307.03°)
OKLaboklab(45.26% 0.0616 -0.195)
OKLCHoklch(45.26% 0.205 287.5)
XYZxyz(14.3203, 7.9398, 49.4832)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731BE #98BE31
analogous
#3152BE #5731BE #9E31BE
triadic
#5731BE #BE5731 #31BE57
tetradic
#5731BE #BE3152 #98BE31 #31BE9E
square
#5731BE #BE3152 #98BE31 #31BE9E
split-complementary
#5731BE #BE9E31 #52BE31
monochromatic
#2A185D #41248D #5731BE #7A58D4 #A089E1

Accessibility & contrast

On white

8.11
#5731BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5731BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731BE
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731BE#FFFFFF#000000##FFFFFF
##5731BE1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C2
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#2C5875
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5731be;
/* rgb */ color: rgb(87, 49, 190);
/* oklch */ color: oklch(45.3% 0.205 287.5);
Tailwind
colors: {
  custom: {
    50: '#916dd3',
    500: '#5731be',
    950: '#000000',
  },
}
SCSS
$custom: #5731be;
$custom-light: #916dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5731be",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 256.17,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45257,
    "c": 0.20453,
    "h": 287.5
  },
  "luminance": 0.07941
}

Semantic roles & 50–950 ramp

primary
#5731BE
secondary
#B6CA80
accent
#E246B8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5731BE

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

Preview Lab → · Contrast checker → · Palette generator →

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