#34208D#34208D

#34208D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.167 H 281.8°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#34208D
RGBrgb(52, 32, 141)
HSLhsl(251, 63%, 34%)
HSVhsv(251, 77%, 55%)
CMYKcmyk(63.1%, 77.3%, 0%, 44.7%)
CIE-LABlab(22.60, 40.55, -56.80)
CIE-LCHlch(22.60, 69.79, 305.52°)
OKLaboklab(35.07% 0.0343 -0.1638)
OKLCHoklch(35.07% 0.167 281.8)
XYZxyz(6.7389, 3.6857, 25.5504)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34208D #798D20
analogous
#20438D #34208D #6B208D
triadic
#34208D #8D3420 #208D34
tetradic
#34208D #8D2043 #798D20 #208D6B
square
#34208D #8D2043 #798D20 #208D6B
split-complementary
#34208D #8D6B20 #438D20
monochromatic
#0F0929 #22155B #34208D #462BBF #6950D7

Accessibility & contrast

On white

12.09
#34208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#34208D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34208D
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34208D#FFFFFF#000000##FFFFFF
##34208D1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #34208d;
/* rgb */ color: rgb(52, 32, 141);
/* oklch */ color: oklch(35.1% 0.167 281.8);
Tailwind
colors: {
  custom: {
    50: '#785eaf',
    500: '#34208d',
    950: '#000000',
  },
}
SCSS
$custom: #34208d;
$custom-light: #785eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#34208d",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 251.009,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35073,
    "c": 0.16739,
    "h": 281.8
  },
  "luminance": 0.03686
}

Semantic roles & 50–950 ramp

primary
#34208D
secondary
#A7BA4E
accent
#E642C8
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #34208D

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

Preview Lab → · Contrast checker → · Palette generator →

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