#34207A#34207A

#34207A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.143 H 285.8°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#34207A
RGBrgb(52, 32, 122)
HSLhsl(253, 58%, 30%)
HSVhsv(253, 74%, 48%)
CMYKcmyk(57.4%, 73.8%, 0%, 52.2%)
CIE-LABlab(20.70, 34.53, -47.95)
CIE-LCHlch(20.70, 59.09, 305.76°)
OKLaboklab(33.15% 0.039 -0.1379)
OKLCHoklch(33.15% 0.143 285.8)
XYZxyz(5.4445, 3.1679, 18.7332)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34207A #667A20
analogous
#20397A #34207A #61207A
triadic
#34207A #7A3420 #207A34
tetradic
#34207A #7A2039 #667A20 #207A61
square
#34207A #7A2039 #667A20 #207A61
split-complementary
#34207A #7A6120 #397A20
monochromatic
#0B0719 #1F134A #34207A #492DAA #6446CE

Accessibility & contrast

On white

12.86
#34207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#34207A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34207A
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34207A#FFFFFF#000000##FFFFFF
##34207A1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#14384A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #34207a;
/* rgb */ color: rgb(52, 32, 122);
/* oklch */ color: oklch(33.2% 0.143 285.8);
Tailwind
colors: {
  custom: {
    50: '#745da1',
    500: '#34207a',
    950: '#000000',
  },
}
SCSS
$custom: #34207a;
$custom-light: #745da1;
$custom-dark: #000000;
JSON
{
  "hex": "#34207a",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 253.333,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33153,
    "c": 0.14333,
    "h": 285.8
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#34207A
secondary
#97AD49
accent
#E246BF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34207A

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

Preview Lab → · Contrast checker → · Palette generator →

#34207A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva