#34174C#34174C

#34174C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.096 H 306.3°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#34174C
RGBrgb(52, 23, 76)
HSLhsl(273, 54%, 19%)
HSVhsv(273, 70%, 30%)
CMYKcmyk(31.6%, 69.7%, 0%, 70.2%)
CIE-LABlab(14.76, 25.90, -27.22)
CIE-LCHlch(14.76, 37.57, 313.57°)
OKLaboklab(27.64% 0.0566 -0.077)
OKLCHoklch(27.64% 0.096 306.3)
XYZxyz(3.0268, 1.8647, 7.0365)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34174C #2F4C17
analogous
#1A174C #34174C #4C174A
triadic
#34174C #4C3417 #174C34
tetradic
#34174C #4C1A17 #2F4C17 #174A4C
square
#34174C #4C1A17 #2F4C17 #174A4C
split-complementary
#34174C #4A4C17 #174C1A
monochromatic
#100717 #14091D #34174C #54257B #7433AA

Accessibility & contrast

On white

15.29
#34174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#34174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34174C
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34174C#FFFFFF#000000##FFFFFF
##34174C1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#0C254B
Tritanopia (blue-blind)
#30222F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #34174c;
/* rgb */ color: rgb(52, 23, 76);
/* oklch */ color: oklch(27.6% 0.096 306.3);
Tailwind
colors: {
  custom: {
    50: '#6e567e',
    500: '#34174c',
    950: '#000000',
  },
}
SCSS
$custom: #34174c;
$custom-light: #6e567e;
$custom-dark: #000000;
JSON
{
  "hex": "#34174c",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 272.83,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27638,
    "c": 0.09556,
    "h": 306.3
  },
  "luminance": 0.01865
}

Semantic roles & 50–950 ramp

primary
#34174C
secondary
#5C833C
accent
#DD4B8D
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #34174C

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

Preview Lab → · Contrast checker → · Palette generator →

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