#5131B8#5131B8

#5131B8 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.198 H 285.9°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#5131B8
RGBrgb(81, 49, 184)
HSLhsl(254, 58%, 46%)
HSVhsv(254, 73%, 72%)
CMYKcmyk(56%, 73.4%, 0%, 27.8%)
CIE-LABlab(32.71, 48.57, -66.16)
CIE-LCHlch(32.71, 82.08, 306.28°)
OKLaboklab(44.14% 0.0542 -0.1904)
OKLCHoklch(44.14% 0.198 285.9)
XYZxyz(13.1408, 7.4059, 46.0752)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131B8 #98B831
analogous
#3154B8 #5131B8 #9431B8
triadic
#5131B8 #B85131 #31B851
tetradic
#5131B8 #B83154 #98B831 #31B894
square
#5131B8 #B83154 #98B831 #31B894
split-complementary
#5131B8 #B89431 #54B831
monochromatic
#261757 #3C2488 #5131B8 #7255D2 #9A85DE

Accessibility & contrast

On white

8.46
#5131B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5131B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131B8
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131B8#FFFFFF#000000##FFFFFF
##5131B81.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#215672
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5131b8;
/* rgb */ color: rgb(81, 49, 184);
/* oklch */ color: oklch(44.1% 0.198 285.9);
Tailwind
colors: {
  custom: {
    50: '#8d6cce',
    500: '#5131b8',
    950: '#000000',
  },
}
SCSS
$custom: #5131b8;
$custom-light: #8d6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5131b8",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 254.222,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44141,
    "c": 0.19799,
    "h": 285.9
  },
  "luminance": 0.07407
}

Semantic roles & 50–950 ramp

primary
#5131B8
secondary
#B6C87D
accent
#E147BD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5131B8

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

Preview Lab → · Contrast checker → · Palette generator →

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