#5531B2#5531B2

#5531B2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.191 H 288.8°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#5531B2
RGBrgb(85, 49, 178)
HSLhsl(257, 57%, 45%)
HSVhsv(257, 72%, 70%)
CMYKcmyk(52.2%, 72.5%, 0%, 30.2%)
CIE-LABlab(32.57, 47.44, -62.82)
CIE-LCHlch(32.57, 78.72, 307.06°)
OKLaboklab(43.97% 0.0614 -0.1805)
OKLCHoklch(43.97% 0.191 288.8)
XYZxyz(12.8782, 7.3417, 42.8494)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5531B2 #8EB231
analogous
#314EB2 #5531B2 #9631B2
triadic
#5531B2 #B25531 #31B255
tetradic
#5531B2 #B2314E #8EB231 #31B296
square
#5531B2 #B2314E #8EB231 #31B296
split-complementary
#5531B2 #B29631 #4EB231
monochromatic
#271752 #3E2482 #5531B2 #7451CF #9B81DC

Accessibility & contrast

On white

8.51
#5531B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5531B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5531B2
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5531B2#FFFFFF#000000##FFFFFF
##5531B21.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#32536E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5531b2;
/* rgb */ color: rgb(85, 49, 178);
/* oklch */ color: oklch(44.0% 0.191 288.8);
Tailwind
colors: {
  custom: {
    50: '#8e6cca',
    500: '#5531b2',
    950: '#000000',
  },
}
SCSS
$custom: #5531b2;
$custom-light: #8e6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5531b2",
  "rgb": {
    "r": 85,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 256.744,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43971,
    "c": 0.19065,
    "h": 288.8
  },
  "luminance": 0.07342
}

Semantic roles & 50–950 ramp

primary
#5531B2
secondary
#B0C579
accent
#E048B6
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5531B2

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

Preview Lab → · Contrast checker → · Palette generator →

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