#34217D#34217D

#34217D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.146 H 284.8°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#34217D
RGBrgb(52, 33, 125)
HSLhsl(252, 58%, 31%)
HSVhsv(252, 74%, 49%)
CMYKcmyk(58.4%, 73.6%, 0%, 51%)
CIE-LABlab(21.20, 34.91, -49.05)
CIE-LCHlch(21.20, 60.21, 305.44°)
OKLaboklab(33.59% 0.0374 -0.1412)
OKLCHoklch(33.59% 0.146 284.8)
XYZxyz(5.6606, 3.2981, 19.7364)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34217D #6A7D21
analogous
#213C7D #34217D #62217D
triadic
#34217D #7D3421 #217D34
tetradic
#34217D #7D213C #6A7D21 #217D62
square
#34217D #7D213C #6A7D21 #217D62
split-complementary
#34217D #7D6221 #3C7D21
monochromatic
#0C071C #20144D #34217D #482EAD #6549CF

Accessibility & contrast

On white

12.65
#34217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#34217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34217D
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34217D#FFFFFF#000000##FFFFFF
##34217D1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#103A4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #34217d;
/* rgb */ color: rgb(52, 33, 125);
/* oklch */ color: oklch(33.6% 0.146 284.8);
Tailwind
colors: {
  custom: {
    50: '#745ea4',
    500: '#34217d',
    950: '#000000',
  },
}
SCSS
$custom: #34217d;
$custom-light: #745ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#34217d",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 252.391,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33594,
    "c": 0.14604,
    "h": 284.8
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#34217D
secondary
#9BB04A
accent
#E146C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34217D

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

Preview Lab → · Contrast checker → · Palette generator →

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