#5331BF#5331BF

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

Color values

HEX#5331BF
RGBrgb(83, 49, 191)
HSLhsl(254, 59%, 47%)
HSVhsv(254, 74%, 75%)
CMYKcmyk(56.5%, 74.3%, 0%, 25.1%)
CIE-LABlab(33.56, 50.88, -68.91)
CIE-LCHlch(33.56, 85.65, 306.44°)
OKLaboklab(44.98% 0.0555 -0.1984)
OKLCHoklch(44.98% 0.206 285.6)
XYZxyz(14.0667, 7.7964, 50.0437)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331BF #9DBF31
analogous
#3156BF #5331BF #9A31BF
triadic
#5331BF #BF5331 #31BF53
tetradic
#5331BF #BF3156 #9DBF31 #31BF9A
square
#5331BF #BF3156 #9DBF31 #31BF9A
split-complementary
#5331BF #BF9A31 #56BF31
monochromatic
#29185E #3E258E #5331BF #7659D4 #9E8AE1

Accessibility & contrast

On white

8.21
#5331BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5331BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331BF
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331BF#FFFFFF#000000##FFFFFF
##5331BF1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5331bf;
/* rgb */ color: rgb(83, 49, 191);
/* oklch */ color: oklch(45.0% 0.206 285.6);
Tailwind
colors: {
  custom: {
    50: '#8f6dd3',
    500: '#5331bf',
    950: '#000000',
  },
}
SCSS
$custom: #5331bf;
$custom-light: #8f6dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5331bf",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 254.366,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44978,
    "c": 0.20599,
    "h": 285.6
  },
  "luminance": 0.07797
}

Semantic roles & 50–950 ramp

primary
#5331BF
secondary
#B9CB81
accent
#E245BD
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5331BF

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

Preview Lab → · Contrast checker → · Palette generator →

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