#34208B#34208B

#34208B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.165 H 282.2°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#34208B
RGBrgb(52, 32, 139)
HSLhsl(251, 63%, 34%)
HSVhsv(251, 77%, 55%)
CMYKcmyk(62.6%, 77%, 0%, 45.5%)
CIE-LABlab(22.40, 39.92, -55.90)
CIE-LCHlch(22.40, 68.69, 305.53°)
OKLaboklab(34.87% 0.0349 -0.1612)
OKLCHoklch(34.87% 0.165 282.2)
XYZxyz(6.5914, 3.6267, 24.7738)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34208B #778B20
analogous
#20418B #34208B #69208B
triadic
#34208B #8B3420 #208B34
tetradic
#34208B #8B2041 #778B20 #208B69
square
#34208B #8B2041 #778B20 #208B69
split-complementary
#34208B #8B6920 #418B20
monochromatic
#0F0928 #211559 #34208B #472BBD #684FD6

Accessibility & contrast

On white

12.17
#34208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34208B
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34208B#FFFFFF#000000##FFFFFF
##34208B1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #34208b;
/* rgb */ color: rgb(52, 32, 139);
/* oklch */ color: oklch(34.9% 0.165 282.2);
Tailwind
colors: {
  custom: {
    50: '#775eae',
    500: '#34208b',
    950: '#000000',
  },
}
SCSS
$custom: #34208b;
$custom-light: #775eae;
$custom-dark: #000000;
JSON
{
  "hex": "#34208b",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 251.215,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34865,
    "c": 0.16492,
    "h": 282.2
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

primary
#34208B
secondary
#A5BA4D
accent
#E642C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #34208B

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

Preview Lab → · Contrast checker → · Palette generator →

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