#34207C#34207C

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

Color values

HEX#34207C
RGBrgb(52, 32, 124)
HSLhsl(253, 59%, 31%)
HSVhsv(253, 74%, 49%)
CMYKcmyk(58.1%, 74.2%, 0%, 51.4%)
CIE-LABlab(20.90, 35.17, -48.91)
CIE-LCHlch(20.90, 60.24, 305.72°)
OKLaboklab(33.35% 0.0385 -0.1407)
OKLCHoklch(33.35% 0.146 285.3)
XYZxyz(5.5697, 3.2180, 19.3925)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34207C #687C20
analogous
#203A7C #34207C #62207C
triadic
#34207C #7C3420 #207C34
tetradic
#34207C #7C203A #687C20 #207C62
square
#34207C #7C203A #687C20 #207C62
split-complementary
#34207C #7C6220 #3A7C20
monochromatic
#0B071B #20134B #34207C #482DAD #6547CF

Accessibility & contrast

On white

12.78
#34207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34207C
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34207C#FFFFFF#000000##FFFFFF
##34207C1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#12394C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #34207c;
/* rgb */ color: rgb(52, 32, 124);
/* oklch */ color: oklch(33.3% 0.146 285.3);
Tailwind
colors: {
  custom: {
    50: '#745da3',
    500: '#34207c',
    950: '#000000',
  },
}
SCSS
$custom: #34207c;
$custom-light: #745da3;
$custom-dark: #000000;
JSON
{
  "hex": "#34207c",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 253.043,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33349,
    "c": 0.14592,
    "h": 285.3
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#34207C
secondary
#99AF49
accent
#E246C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34207C

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

Preview Lab → · Contrast checker → · Palette generator →

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