#5334BB#5334BB

#5334BB is a dark, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.198 H 285.8°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5334BB
RGBrgb(83, 52, 187)
HSLhsl(254, 56%, 47%)
HSVhsv(254, 72%, 73%)
CMYKcmyk(55.6%, 72.2%, 0%, 26.7%)
CIE-LABlab(33.74, 48.17, -66.25)
CIE-LCHlch(33.74, 81.92, 306.02°)
OKLaboklab(44.99% 0.0541 -0.1906)
OKLCHoklch(44.99% 0.198 285.8)
XYZxyz(13.7622, 7.8821, 47.8003)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5334BB #9CBB34
analogous
#3459BB #5334BB #9734BB
triadic
#5334BB #BB5334 #34BB53
tetradic
#5334BB #BB3459 #9CBB34 #34BB97
square
#5334BB #BB3459 #9CBB34 #34BB97
split-complementary
#5334BB #BB9734 #59BB34
monochromatic
#28195B #3E278B #5334BB #765BD1 #9E8BDF

Accessibility & contrast

On white

8.15
#5334BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5334BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5334BB
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5334BB#FFFFFF#000000##FFFFFF
##5334BB1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BF
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#235874
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5334bb;
/* rgb */ color: rgb(83, 52, 187);
/* oklch */ color: oklch(45.0% 0.198 285.8);
Tailwind
colors: {
  custom: {
    50: '#8e6fd1',
    500: '#5334bb',
    950: '#000000',
  },
}
SCSS
$custom: #5334bb;
$custom-light: #8e6fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5334bb",
  "rgb": {
    "r": 83,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 253.778,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44994,
    "c": 0.19815,
    "h": 285.8
  },
  "luminance": 0.07883
}

Semantic roles & 50–950 ramp

primary
#5334BB
secondary
#B9C982
accent
#E048BD
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5334BB

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

Preview Lab → · Contrast checker → · Palette generator →

#5334BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva