#5331B2#5331B2

#5331B2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.191 H 287.9°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5331B2
RGBrgb(83, 49, 178)
HSLhsl(256, 57%, 45%)
HSVhsv(256, 72%, 70%)
CMYKcmyk(53.4%, 72.5%, 0%, 30.2%)
CIE-LABlab(32.37, 47.13, -63.16)
CIE-LCHlch(32.37, 78.81, 306.73°)
OKLaboklab(43.78% 0.0585 -0.1816)
OKLCHoklch(43.78% 0.191 287.9)
XYZxyz(12.6991, 7.2493, 42.8410)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331B2 #90B231
analogous
#3150B2 #5331B2 #9431B2
triadic
#5331B2 #B25331 #31B253
tetradic
#5331B2 #B23150 #90B231 #31B294
square
#5331B2 #B23150 #90B231 #31B294
split-complementary
#5331B2 #B29431 #50B231
monochromatic
#261752 #3D2482 #5331B2 #7251CF #9981DC

Accessibility & contrast

On white

8.57
#5331B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5331B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331B2
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331B2#FFFFFF#000000##FFFFFF
##5331B21.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#2D536E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5331b2;
/* rgb */ color: rgb(83, 49, 178);
/* oklch */ color: oklch(43.8% 0.191 287.9);
Tailwind
colors: {
  custom: {
    50: '#8d6cca',
    500: '#5331b2',
    950: '#000000',
  },
}
SCSS
$custom: #5331b2;
$custom-light: #8d6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5331b2",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 255.814,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43777,
    "c": 0.19075,
    "h": 287.9
  },
  "luminance": 0.0725
}

Semantic roles & 50–950 ramp

primary
#5331B2
secondary
#B1C579
accent
#E048B8
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5331B2

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

Preview Lab → · Contrast checker → · Palette generator →

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