#34176C#34176C

#34176C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.136 H 291.8°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#34176C
RGBrgb(52, 23, 108)
HSLhsl(260, 65%, 26%)
HSVhsv(260, 79%, 42%)
CMYKcmyk(51.9%, 78.7%, 0%, 57.6%)
CIE-LABlab(17.58, 35.19, -44.05)
CIE-LCHlch(17.58, 56.38, 308.62°)
OKLaboklab(30.53% 0.0506 -0.1264)
OKLCHoklch(30.53% 0.136 291.8)
XYZxyz(4.4286, 2.4254, 14.4193)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34176C #4F6C17
analogous
#17246C #34176C #5E176C
triadic
#34176C #6C3417 #176C34
tetradic
#34176C #6C1724 #4F6C17 #176C5E
square
#34176C #6C1724 #4F6C17 #176C5E
split-complementary
#34176C #6C5E17 #246C17
monochromatic
#0C0519 #1C0C3A #34176C #4C229E #652CD1

Accessibility & contrast

On white

14.14
#34176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#34176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34176C
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34176C#FFFFFF#000000##FFFFFF
##34176C1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#222E40
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #34176c;
/* rgb */ color: rgb(52, 23, 108);
/* oklch */ color: oklch(30.5% 0.136 291.8);
Tailwind
colors: {
  custom: {
    50: '#725797',
    500: '#34176c',
    950: '#000000',
  },
}
SCSS
$custom: #34176c;
$custom-light: #725797;
$custom-dark: #000000;
JSON
{
  "hex": "#34176c",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 260.471,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30525,
    "c": 0.13619,
    "h": 291.8
  },
  "luminance": 0.02426
}

Semantic roles & 50–950 ramp

primary
#34176C
secondary
#7FA23D
accent
#E840AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #34176C

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

Preview Lab → · Contrast checker → · Palette generator →

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