#34207F#34207F

#34207F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.150 H 284.6°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#34207F
RGBrgb(52, 32, 127)
HSLhsl(253, 60%, 31%)
HSVhsv(253, 75%, 50%)
CMYKcmyk(59.1%, 74.8%, 0%, 50.2%)
CIE-LABlab(21.19, 36.13, -50.34)
CIE-LCHlch(21.19, 61.96, 305.67°)
OKLaboklab(33.65% 0.0378 -0.1449)
OKLCHoklch(33.65% 0.15 284.6)
XYZxyz(5.7623, 3.2950, 20.4069)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34207F #6B7F20
analogous
#203B7F #34207F #63207F
triadic
#34207F #7F3420 #207F34
tetradic
#34207F #7F203B #6B7F20 #207F63
square
#34207F #7F203B #6B7F20 #207F63
split-complementary
#34207F #7F6320 #3B7F20
monochromatic
#0C071D #20144E #34207F #482CB0 #6548D1

Accessibility & contrast

On white

12.66
#34207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#34207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34207F
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34207F#FFFFFF#000000##FFFFFF
##34207F1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#0D3A4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #34207f;
/* rgb */ color: rgb(52, 32, 127);
/* oklch */ color: oklch(33.6% 0.150 284.6);
Tailwind
colors: {
  custom: {
    50: '#755ea5',
    500: '#34207f',
    950: '#000000',
  },
}
SCSS
$custom: #34207f;
$custom-light: #755ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#34207f",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 252.632,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33645,
    "c": 0.14979,
    "h": 284.6
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#34207F
secondary
#9CB249
accent
#E345C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34207F

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

Preview Lab → · Contrast checker → · Palette generator →

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