#5231BF#5231BF

#5231BF is a dark, highly saturated violet. Relative luminance 0.078; OKLCH L 44.9% C 0.206 H 285.2°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#5231BF
RGBrgb(82, 49, 191)
HSLhsl(254, 59%, 47%)
HSVhsv(254, 74%, 75%)
CMYKcmyk(57.1%, 74.3%, 0%, 25.1%)
CIE-LABlab(33.46, 50.74, -69.07)
CIE-LCHlch(33.46, 85.70, 306.30°)
OKLaboklab(44.89% 0.054 -0.1989)
OKLCHoklch(44.89% 0.206 285.2)
XYZxyz(13.9791, 7.7512, 50.0396)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231BF #9EBF31
analogous
#3157BF #5231BF #9931BF
triadic
#5231BF #BF5231 #31BF52
tetradic
#5231BF #BF3157 #9EBF31 #31BF99
square
#5231BF #BF3157 #9EBF31 #31BF99
split-complementary
#5231BF #BF9931 #57BF31
monochromatic
#28185E #3D258E #5231BF #7659D4 #9E8AE1

Accessibility & contrast

On white

8.23
#5231BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5231BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231BF
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231BF#FFFFFF#000000##FFFFFF
##5231BF1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C3
Deuteranopia (green-blind)
#004ABC
Tritanopia (blue-blind)
#1A5976
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5231bf;
/* rgb */ color: rgb(82, 49, 191);
/* oklch */ color: oklch(44.9% 0.206 285.2);
Tailwind
colors: {
  custom: {
    50: '#8f6dd4',
    500: '#5231bf',
    950: '#000000',
  },
}
SCSS
$custom: #5231bf;
$custom-light: #8f6dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#5231bf",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 253.944,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44888,
    "c": 0.20609,
    "h": 285.2
  },
  "luminance": 0.07752
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5231BF

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

Preview Lab → · Contrast checker → · Palette generator →

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