#34208F#34208F

#34208F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.170 H 281.5°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#34208F
RGBrgb(52, 32, 143)
HSLhsl(251, 63%, 34%)
HSVhsv(251, 78%, 56%)
CMYKcmyk(63.6%, 77.6%, 0%, 43.9%)
CIE-LABlab(22.81, 41.17, -57.70)
CIE-LCHlch(22.81, 70.89, 305.51°)
OKLaboklab(35.28% 0.0338 -0.1665)
OKLCHoklch(35.28% 0.17 281.5)
XYZxyz(6.8891, 3.7458, 26.3412)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34208F #7B8F20
analogous
#20448F #34208F #6C208F
triadic
#34208F #8F3420 #208F34
tetradic
#34208F #8F2044 #7B8F20 #208F6C
square
#34208F #8F2044 #7B8F20 #208F6C
split-complementary
#34208F #8F6C20 #448F20
monochromatic
#100A2B #22155D #34208F #462BC1 #6A51D8

Accessibility & contrast

On white

12.01
#34208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#34208F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34208F
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34208F#FFFFFF#000000##FFFFFF
##34208F1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #34208f;
/* rgb */ color: rgb(52, 32, 143);
/* oklch */ color: oklch(35.3% 0.170 281.5);
Tailwind
colors: {
  custom: {
    50: '#785eb1',
    500: '#34208f',
    950: '#000000',
  },
}
SCSS
$custom: #34208f;
$custom-light: #785eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#34208f",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 250.811,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35282,
    "c": 0.16986,
    "h": 281.5
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

primary
#34208F
secondary
#A8BB4F
accent
#E641C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #34208F

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

Preview Lab → · Contrast checker → · Palette generator →

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