#34176A#34176A

#34176A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.134 H 292.5°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#34176A
RGBrgb(52, 23, 106)
HSLhsl(261, 64%, 25%)
HSVhsv(261, 78%, 42%)
CMYKcmyk(50.9%, 78.3%, 0%, 58.4%)
CIE-LABlab(17.38, 34.59, -43.06)
CIE-LCHlch(17.38, 55.24, 308.78°)
OKLaboklab(30.33% 0.0511 -0.1236)
OKLCHoklch(30.33% 0.134 292.5)
XYZxyz(4.3234, 2.3833, 13.8651)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34176A #4D6A17
analogous
#17236A #34176A #5D176A
triadic
#34176A #6A3417 #176A34
tetradic
#34176A #6A1723 #4D6A17 #176A5D
square
#34176A #6A1723 #4D6A17 #176A5D
split-complementary
#34176A #6A5D17 #236A17
monochromatic
#0C0519 #1B0C38 #34176A #4D229C #652DCF

Accessibility & contrast

On white

14.22
#34176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#34176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34176A
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34176A#FFFFFF#000000##FFFFFF
##34176A1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34176a;
/* rgb */ color: rgb(52, 23, 106);
/* oklch */ color: oklch(30.3% 0.134 292.5);
Tailwind
colors: {
  custom: {
    50: '#725795',
    500: '#34176a',
    950: '#000000',
  },
}
SCSS
$custom: #34176a;
$custom-light: #725795;
$custom-dark: #000000;
JSON
{
  "hex": "#34176a",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 260.964,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30328,
    "c": 0.13372,
    "h": 292.5
  },
  "luminance": 0.02383
}

Semantic roles & 50–950 ramp

primary
#34176A
secondary
#7DA03D
accent
#E740AD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #34176A

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

Preview Lab → · Contrast checker → · Palette generator →

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