#5131B2#5131B2

#5131B2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.191 H 286.9°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#5131B2
RGBrgb(81, 49, 178)
HSLhsl(255, 57%, 45%)
HSVhsv(255, 72%, 70%)
CMYKcmyk(54.5%, 72.5%, 0%, 30.2%)
CIE-LABlab(32.17, 46.82, -63.50)
CIE-LCHlch(32.17, 78.89, 306.40°)
OKLaboklab(43.59% 0.0556 -0.1826)
OKLCHoklch(43.59% 0.191 286.9)
XYZxyz(12.5251, 7.1596, 42.8328)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131B2 #92B231
analogous
#3151B2 #5131B2 #9231B2
triadic
#5131B2 #B25131 #31B251
tetradic
#5131B2 #B23151 #92B231 #31B292
square
#5131B2 #B23151 #92B231 #31B292
split-complementary
#5131B2 #B29231 #51B231
monochromatic
#251752 #3B2482 #5131B2 #7051CF #9881DC

Accessibility & contrast

On white

8.63
#5131B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5131B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131B2
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131B2#FFFFFF#000000##FFFFFF
##5131B21.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#28546E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5131b2;
/* rgb */ color: rgb(81, 49, 178);
/* oklch */ color: oklch(43.6% 0.191 286.9);
Tailwind
colors: {
  custom: {
    50: '#8c6cca',
    500: '#5131b2',
    950: '#000000',
  },
}
SCSS
$custom: #5131b2;
$custom-light: #8c6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5131b2",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 254.884,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43587,
    "c": 0.19088,
    "h": 286.9
  },
  "luminance": 0.0716
}

Semantic roles & 50–950 ramp

primary
#5131B2
secondary
#B3C579
accent
#E048BA
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5131B2

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

Preview Lab → · Contrast checker → · Palette generator →

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