#52339F#52339F

#52339F is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.3% C 0.165 H 290.8°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#52339F
RGBrgb(82, 51, 159)
HSLhsl(257, 51%, 41%)
HSVhsv(257, 68%, 62%)
CMYKcmyk(48.4%, 67.9%, 0%, 37.6%)
CIE-LABlab(31.03, 40.35, -53.94)
CIE-LCHlch(31.03, 67.36, 306.80°)
OKLaboklab(42.3% 0.0587 -0.1545)
OKLCHoklch(42.3% 0.165 290.8)
XYZxyz(10.9197, 6.6643, 33.5051)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52339F #809F33
analogous
#334A9F #52339F #88339F
triadic
#52339F #9F5233 #339F52
tetradic
#52339F #9F334A #809F33 #339F88
square
#52339F #9F334A #809F33 #339F88
split-complementary
#52339F #9F8833 #4A9F33
monochromatic
#221542 #3A2471 #52339F #6D4AC5 #9379D4

Accessibility & contrast

On white

9.00
#52339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#52339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52339F
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52339F#FFFFFF#000000##FFFFFF
##52339F1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#394E64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #52339f;
/* rgb */ color: rgb(82, 51, 159);
/* oklch */ color: oklch(42.3% 0.165 290.8);
Tailwind
colors: {
  custom: {
    50: '#8a6dbc',
    500: '#52339f',
    950: '#000000',
  },
}
SCSS
$custom: #52339f;
$custom-light: #8a6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#52339f",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 257.222,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42295,
    "c": 0.1653,
    "h": 290.8
  },
  "luminance": 0.06665
}

Semantic roles & 50–950 ramp

primary
#52339F
secondary
#A7BC71
accent
#DB4DB2
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #52339F

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

Preview Lab → · Contrast checker → · Palette generator →

#52339F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva