#34207B#34207B

#34207B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.145 H 285.5°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#34207B
RGBrgb(52, 32, 123)
HSLhsl(253, 59%, 30%)
HSVhsv(253, 74%, 48%)
CMYKcmyk(57.7%, 74%, 0%, 51.8%)
CIE-LABlab(20.80, 34.85, -48.43)
CIE-LCHlch(20.80, 59.67, 305.74°)
OKLaboklab(33.25% 0.0387 -0.1393)
OKLCHoklch(33.25% 0.145 285.5)
XYZxyz(5.5068, 3.1928, 19.0612)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34207B #677B20
analogous
#20397B #34207B #61207B
triadic
#34207B #7B3420 #207B34
tetradic
#34207B #7B2039 #677B20 #207B61
square
#34207B #7B2039 #677B20 #207B61
split-complementary
#34207B #7B6120 #397B20
monochromatic
#0B071A #1F134A #34207B #492DAC #6446CF

Accessibility & contrast

On white

12.82
#34207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#34207B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34207B
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34207B#FFFFFF#000000##FFFFFF
##34207B1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#13384B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #34207b;
/* rgb */ color: rgb(52, 32, 123);
/* oklch */ color: oklch(33.3% 0.145 285.5);
Tailwind
colors: {
  custom: {
    50: '#745da2',
    500: '#34207b',
    950: '#000000',
  },
}
SCSS
$custom: #34207b;
$custom-light: #745da2;
$custom-dark: #000000;
JSON
{
  "hex": "#34207b",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 253.187,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33251,
    "c": 0.14463,
    "h": 285.5
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#34207B
secondary
#98AE49
accent
#E246C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34207B

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

Preview Lab → · Contrast checker → · Palette generator →

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