#5131BF#5131BF

#5131BF is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.8% C 0.206 H 284.8°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5131BF
RGBrgb(81, 49, 191)
HSLhsl(254, 59%, 47%)
HSVhsv(254, 74%, 75%)
CMYKcmyk(57.6%, 74.3%, 0%, 25.1%)
CIE-LABlab(33.36, 50.60, -69.23)
CIE-LCHlch(33.36, 85.75, 306.17°)
OKLaboklab(44.8% 0.0526 -0.1994)
OKLCHoklch(44.8% 0.206 284.8)
XYZxyz(13.8928, 7.7067, 50.0356)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131BF #9FBF31
analogous
#3158BF #5131BF #9831BF
triadic
#5131BF #BF5131 #31BF51
tetradic
#5131BF #BF3158 #9FBF31 #31BF98
square
#5131BF #BF3158 #9FBF31 #31BF98
split-complementary
#5131BF #BF9831 #58BF31
monochromatic
#28185E #3C258E #5131BF #7559D4 #9D8AE1

Accessibility & contrast

On white

8.26
#5131BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5131BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131BF
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131BF#FFFFFF#000000##FFFFFF
##5131BF1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C3
Deuteranopia (green-blind)
#004ABC
Tritanopia (blue-blind)
#165976
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5131bf;
/* rgb */ color: rgb(81, 49, 191);
/* oklch */ color: oklch(44.8% 0.206 284.8);
Tailwind
colors: {
  custom: {
    50: '#8e6dd4',
    500: '#5131bf',
    950: '#000000',
  },
}
SCSS
$custom: #5131bf;
$custom-light: #8e6dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#5131bf",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 253.521,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44798,
    "c": 0.2062,
    "h": 284.8
  },
  "luminance": 0.07708
}

Semantic roles & 50–950 ramp

primary
#5131BF
secondary
#BACB81
accent
#E245BF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5131BF

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

Preview Lab → · Contrast checker → · Palette generator →

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