#34174A#34174A

#34174A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.093 H 307.6°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#34174A
RGBrgb(52, 23, 74)
HSLhsl(274, 53%, 19%)
HSVhsv(274, 69%, 29%)
CMYKcmyk(29.7%, 68.9%, 0%, 71%)
CIE-LABlab(14.61, 25.34, -26.09)
CIE-LCHlch(14.61, 36.37, 314.17°)
OKLaboklab(27.48% 0.0567 -0.0737)
OKLCHoklch(27.48% 0.093 307.6)
XYZxyz(2.9583, 1.8373, 6.6760)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34174A #2D4A17
analogous
#1B174A #34174A #4A1747
triadic
#34174A #4A3417 #174A34
tetradic
#34174A #4A1B17 #2D4A17 #17474A
square
#34174A #4A1B17 #2D4A17 #17474A
split-complementary
#34174A #474A17 #174A1B
monochromatic
#100717 #13081B #34174A #552679 #7634A7

Accessibility & contrast

On white

15.36
#34174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34174A
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34174A#FFFFFF#000000##FFFFFF
##34174A1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01244C
Deuteranopia (green-blind)
#0E2549
Tritanopia (blue-blind)
#31212E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #34174a;
/* rgb */ color: rgb(52, 23, 74);
/* oklch */ color: oklch(27.5% 0.093 307.6);
Tailwind
colors: {
  custom: {
    50: '#6e567d',
    500: '#34174a',
    950: '#000000',
  },
}
SCSS
$custom: #34174a;
$custom-light: #6e567d;
$custom-dark: #000000;
JSON
{
  "hex": "#34174a",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 274.118,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2748,
    "c": 0.09297,
    "h": 307.6
  },
  "luminance": 0.01837
}

Semantic roles & 50–950 ramp

primary
#34174A
secondary
#5A813C
accent
#DC4C8A
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #34174A

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

Preview Lab → · Contrast checker → · Palette generator →

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