#5131BE#5131BE

#5131BE is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.7% C 0.205 H 284.9°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#5131BE
RGBrgb(81, 49, 190)
HSLhsl(254, 59%, 47%)
HSVhsv(254, 74%, 75%)
CMYKcmyk(57.4%, 74.2%, 0%, 25.5%)
CIE-LABlab(33.27, 50.31, -68.79)
CIE-LCHlch(33.27, 85.23, 306.18°)
OKLaboklab(44.7% 0.0528 -0.1981)
OKLCHoklch(44.7% 0.205 284.9)
XYZxyz(13.7831, 7.6628, 49.4580)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131BE #9EBE31
analogous
#3158BE #5131BE #9831BE
triadic
#5131BE #BE5131 #31BE51
tetradic
#5131BE #BE3158 #9EBE31 #31BE98
square
#5131BE #BE3158 #9EBE31 #31BE98
split-complementary
#5131BE #BE9831 #58BE31
monochromatic
#28185D #3C248D #5131BE #7458D4 #9D89E1

Accessibility & contrast

On white

8.29
#5131BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5131BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131BE
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131BE#FFFFFF#000000##FFFFFF
##5131BE1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C2
Deuteranopia (green-blind)
#004ABB
Tritanopia (blue-blind)
#185875
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5131be;
/* rgb */ color: rgb(81, 49, 190);
/* oklch */ color: oklch(44.7% 0.205 284.9);
Tailwind
colors: {
  custom: {
    50: '#8e6dd3',
    500: '#5131be',
    950: '#000000',
  },
}
SCSS
$custom: #5131be;
$custom-light: #8e6dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5131be",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 253.617,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44703,
    "c": 0.20503,
    "h": 284.9
  },
  "luminance": 0.07664
}

Semantic roles & 50–950 ramp

primary
#5131BE
secondary
#BACA80
accent
#E246BF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5131BE

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

Preview Lab → · Contrast checker → · Palette generator →

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