#5234BB#5234BB

#5234BB is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.198 H 285.4°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#5234BB
RGBrgb(82, 52, 187)
HSLhsl(253, 56%, 47%)
HSVhsv(253, 72%, 73%)
CMYKcmyk(56.1%, 72.2%, 0%, 26.7%)
CIE-LABlab(33.64, 48.03, -66.41)
CIE-LCHlch(33.64, 81.96, 305.87°)
OKLaboklab(44.9% 0.0526 -0.1911)
OKLCHoklch(44.9% 0.198 285.4)
XYZxyz(13.6746, 7.8369, 47.7962)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5234BB #9DBB34
analogous
#345ABB #5234BB #9534BB
triadic
#5234BB #BB5234 #34BB52
tetradic
#5234BB #BB345A #9DBB34 #34BB95
square
#5234BB #BB345A #9DBB34 #34BB95
split-complementary
#5234BB #BB9534 #5ABB34
monochromatic
#28195B #3D278B #5234BB #755BD1 #9D8BDF

Accessibility & contrast

On white

8.18
#5234BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5234BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5234BB
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5234BB#FFFFFF#000000##FFFFFF
##5234BB1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5234bb;
/* rgb */ color: rgb(82, 52, 187);
/* oklch */ color: oklch(44.9% 0.198 285.4);
Tailwind
colors: {
  custom: {
    50: '#8e6ed1',
    500: '#5234bb',
    950: '#000000',
  },
}
SCSS
$custom: #5234bb;
$custom-light: #8e6ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#5234bb",
  "rgb": {
    "r": 82,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 253.333,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44904,
    "c": 0.19825,
    "h": 285.4
  },
  "luminance": 0.07838
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5234BB

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

Preview Lab → · Contrast checker → · Palette generator →

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