#5731B2#5731B2

#5731B2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.191 H 289.7°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#5731B2
RGBrgb(87, 49, 178)
HSLhsl(258, 57%, 45%)
HSVhsv(258, 72%, 70%)
CMYKcmyk(51.1%, 72.5%, 0%, 30.2%)
CIE-LABlab(32.78, 47.76, -62.47)
CIE-LCHlch(32.78, 78.64, 307.40°)
OKLaboklab(44.17% 0.0644 -0.1794)
OKLCHoklch(44.17% 0.191 289.7)
XYZxyz(13.0624, 7.4366, 42.8580)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731B2 #8CB231
analogous
#314CB2 #5731B2 #9731B2
triadic
#5731B2 #B25731 #31B257
tetradic
#5731B2 #B2314C #8CB231 #31B297
square
#5731B2 #B2314C #8CB231 #31B297
split-complementary
#5731B2 #B29731 #4CB231
monochromatic
#281752 #402482 #5731B2 #7651CF #9C81DC

Accessibility & contrast

On white

8.44
#5731B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5731B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731B2
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731B2#FFFFFF#000000##FFFFFF
##5731B21.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#37536E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5731b2;
/* rgb */ color: rgb(87, 49, 178);
/* oklch */ color: oklch(44.2% 0.191 289.7);
Tailwind
colors: {
  custom: {
    50: '#8f6dca',
    500: '#5731b2',
    950: '#000000',
  },
}
SCSS
$custom: #5731b2;
$custom-light: #8f6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#5731b2",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 257.674,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44167,
    "c": 0.19059,
    "h": 289.7
  },
  "luminance": 0.07437
}

Semantic roles & 50–950 ramp

primary
#5731B2
secondary
#AFC579
accent
#E048B3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5731B2

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

Preview Lab → · Contrast checker → · Palette generator →

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