#34208A#34208A

#34208A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.164 H 282.4°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#34208A
RGBrgb(52, 32, 138)
HSLhsl(251, 62%, 33%)
HSVhsv(251, 77%, 54%)
CMYKcmyk(62.3%, 76.8%, 0%, 45.9%)
CIE-LABlab(22.29, 39.61, -55.44)
CIE-LCHlch(22.29, 68.13, 305.54°)
OKLaboklab(34.76% 0.0351 -0.1599)
OKLCHoklch(34.76% 0.164 282.4)
XYZxyz(6.5187, 3.5976, 24.3907)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34208A #768A20
analogous
#20418A #34208A #69208A
triadic
#34208A #8A3420 #208A34
tetradic
#34208A #8A2041 #768A20 #208A69
square
#34208A #8A2041 #768A20 #208A69
split-complementary
#34208A #8A6920 #418A20
monochromatic
#0F0927 #211458 #34208A #472CBC #684ED6

Accessibility & contrast

On white

12.21
#34208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#34208A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34208A
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34208A#FFFFFF#000000##FFFFFF
##34208A1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #34208a;
/* rgb */ color: rgb(52, 32, 138);
/* oklch */ color: oklch(34.8% 0.164 282.4);
Tailwind
colors: {
  custom: {
    50: '#775ead',
    500: '#34208a',
    950: '#000000',
  },
}
SCSS
$custom: #34208a;
$custom-light: #775ead;
$custom-dark: #000000;
JSON
{
  "hex": "#34208a",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 251.321,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34761,
    "c": 0.16367,
    "h": 282.4
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#34208A
secondary
#A5B94D
accent
#E542C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #34208A

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

Preview Lab → · Contrast checker → · Palette generator →

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