#34166A#34166A

#34166A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.135 H 292.7°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#34166A
RGBrgb(52, 22, 106)
HSLhsl(261, 66%, 25%)
HSVhsv(261, 79%, 42%)
CMYKcmyk(50.9%, 79.2%, 0%, 58.4%)
CIE-LABlab(17.20, 35.11, -43.36)
CIE-LCHlch(17.20, 55.80, 309.00°)
OKLaboklab(30.2% 0.0521 -0.1244)
OKLCHoklch(30.2% 0.135 292.7)
XYZxyz(4.3039, 2.3443, 13.8586)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34166A #4C6A16
analogous
#16226A #34166A #5E166A
triadic
#34166A #6A3416 #166A34
tetradic
#34166A #6A1622 #4C6A16 #166A5E
square
#34166A #6A1622 #4C6A16 #166A5E
split-complementary
#34166A #6A5E16 #226A16
monochromatic
#0C0519 #1B0B37 #34166A #4D219D #662BCF

Accessibility & contrast

On white

14.30
#34166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#34166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34166A
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34166A#FFFFFF#000000##FFFFFF
##34166A1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002968
Tritanopia (blue-blind)
#232D3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #34166a;
/* rgb */ color: rgb(52, 22, 106);
/* oklch */ color: oklch(30.2% 0.135 292.7);
Tailwind
colors: {
  custom: {
    50: '#725795',
    500: '#34166a',
    950: '#000000',
  },
}
SCSS
$custom: #34166a;
$custom-light: #725795;
$custom-dark: #000000;
JSON
{
  "hex": "#34166a",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 261.429,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30199,
    "c": 0.13488,
    "h": 292.7
  },
  "luminance": 0.02344
}

Semantic roles & 50–950 ramp

primary
#34166A
secondary
#7CA03B
accent
#E93FAC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #34166A

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

Preview Lab → · Contrast checker → · Palette generator →

#34166A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva