#34208C#34208C

#34208C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.166 H 282.0°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#34208C
RGBrgb(52, 32, 140)
HSLhsl(251, 63%, 34%)
HSVhsv(251, 77%, 55%)
CMYKcmyk(62.9%, 77.1%, 0%, 45.1%)
CIE-LABlab(22.50, 40.23, -56.35)
CIE-LCHlch(22.50, 69.24, 305.53°)
OKLaboklab(34.97% 0.0346 -0.1625)
OKLCHoklch(34.97% 0.166 282)
XYZxyz(6.6648, 3.6561, 25.1603)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34208C #788C20
analogous
#20428C #34208C #6A208C
triadic
#34208C #8C3420 #208C34
tetradic
#34208C #8C2042 #788C20 #208C6A
square
#34208C #8C2042 #788C20 #208C6A
split-complementary
#34208C #8C6A20 #428C20
monochromatic
#0F0928 #21155A #34208C #472BBE #6950D7

Accessibility & contrast

On white

12.13
#34208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#34208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34208C
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34208C#FFFFFF#000000##FFFFFF
##34208C1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #34208c;
/* rgb */ color: rgb(52, 32, 140);
/* oklch */ color: oklch(35.0% 0.166 282.0);
Tailwind
colors: {
  custom: {
    50: '#775eaf',
    500: '#34208c',
    950: '#000000',
  },
}
SCSS
$custom: #34208c;
$custom-light: #775eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#34208c",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 251.111,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34968,
    "c": 0.16615,
    "h": 282
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#34208C
secondary
#A6BA4E
accent
#E642C7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #34208C

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

Preview Lab → · Contrast checker → · Palette generator →

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