#5331BD#5331BD

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

Color values

HEX#5331BD
RGBrgb(83, 49, 189)
HSLhsl(255, 59%, 47%)
HSVhsv(255, 74%, 74%)
CMYKcmyk(56.1%, 74.1%, 0%, 25.9%)
CIE-LABlab(33.37, 50.30, -68.03)
CIE-LCHlch(33.37, 84.61, 306.48°)
OKLaboklab(44.79% 0.056 -0.1958)
OKLCHoklch(44.79% 0.204 286)
XYZxyz(13.8481, 7.7090, 48.8925)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331BD #9BBD31
analogous
#3155BD #5331BD #9931BD
triadic
#5331BD #BD5331 #31BD53
tetradic
#5331BD #BD3155 #9BBD31 #31BD99
square
#5331BD #BD3155 #9BBD31 #31BD99
split-complementary
#5331BD #BD9931 #55BD31
monochromatic
#28185C #3E248C #5331BD #7658D4 #9E88E0

Accessibility & contrast

On white

8.26
#5331BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5331BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331BD
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331BD#FFFFFF#000000##FFFFFF
##5331BD1.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)
#0052C1
Deuteranopia (green-blind)
#004ABA
Tritanopia (blue-blind)
#215875
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5331bd;
/* rgb */ color: rgb(83, 49, 189);
/* oklch */ color: oklch(44.8% 0.204 286.0);
Tailwind
colors: {
  custom: {
    50: '#8f6dd2',
    500: '#5331bd',
    950: '#000000',
  },
}
SCSS
$custom: #5331bd;
$custom-light: #8f6dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5331bd",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 254.571,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44791,
    "c": 0.20367,
    "h": 286
  },
  "luminance": 0.0771
}

Semantic roles & 50–950 ramp

primary
#5331BD
secondary
#B8CA80
accent
#E246BC
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5331BD

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

Preview Lab → · Contrast checker → · Palette generator →

#5331BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva