#34217B#34217B

#34217B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.143 H 285.3°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#34217B
RGBrgb(52, 33, 123)
HSLhsl(253, 58%, 31%)
HSVhsv(253, 73%, 48%)
CMYKcmyk(57.7%, 73.2%, 0%, 51.8%)
CIE-LABlab(21.01, 34.27, -48.09)
CIE-LCHlch(21.01, 59.05, 305.48°)
OKLaboklab(33.4% 0.0378 -0.1383)
OKLCHoklch(33.4% 0.143 285.3)
XYZxyz(5.5341, 3.2475, 19.0703)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34217B #687B21
analogous
#213B7B #34217B #61217B
triadic
#34217B #7B3421 #217B34
tetradic
#34217B #7B213B #687B21 #217B61
square
#34217B #7B213B #687B21 #217B61
split-complementary
#34217B #7B6121 #3B7B21
monochromatic
#0B071A #20144B #34217B #482EAB #6548CE

Accessibility & contrast

On white

12.73
#34217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#34217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34217B
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34217B#FFFFFF#000000##FFFFFF
##34217B1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#13394B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #34217b;
/* rgb */ color: rgb(52, 33, 123);
/* oklch */ color: oklch(33.4% 0.143 285.3);
Tailwind
colors: {
  custom: {
    50: '#745ea2',
    500: '#34217b',
    950: '#000000',
  },
}
SCSS
$custom: #34217b;
$custom-light: #745ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#34217b",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 252.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33399,
    "c": 0.14343,
    "h": 285.3
  },
  "luminance": 0.03248
}

Semantic roles & 50–950 ramp

primary
#34217B
secondary
#99AE4A
accent
#E147C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34217B

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

Preview Lab → · Contrast checker → · Palette generator →

#34217B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva