#34174F#34174F

#34174F is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.099 H 304.5°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#34174F
RGBrgb(52, 23, 79)
HSLhsl(271, 55%, 20%)
HSVhsv(271, 71%, 31%)
CMYKcmyk(34.2%, 70.9%, 0%, 69%)
CIE-LABlab(14.99, 26.73, -28.91)
CIE-LCHlch(14.99, 39.37, 312.76°)
OKLaboklab(27.88% 0.0563 -0.082)
OKLCHoklch(27.88% 0.099 304.5)
XYZxyz(3.1335, 1.9074, 7.5987)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34174F #324F17
analogous
#18174F #34174F #4F174E
triadic
#34174F #4F3417 #174F34
tetradic
#34174F #4F1817 #324F17 #174E4F
square
#34174F #4F1817 #324F17 #174E4F
split-complementary
#34174F #4E4F17 #174F18
monochromatic
#100718 #150920 #34174F #53257E #7233AE

Accessibility & contrast

On white

15.20
#34174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#34174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34174F
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34174F#FFFFFF#000000##FFFFFF
##34174F1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#07264E
Tritanopia (blue-blind)
#2F2330
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #34174f;
/* rgb */ color: rgb(52, 23, 79);
/* oklch */ color: oklch(27.9% 0.099 304.5);
Tailwind
colors: {
  custom: {
    50: '#6e5681',
    500: '#34174f',
    950: '#000000',
  },
}
SCSS
$custom: #34174f;
$custom-light: #6e5681;
$custom-dark: #000000;
JSON
{
  "hex": "#34174f",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 271.071,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.27881,
    "c": 0.09946,
    "h": 304.5
  },
  "luminance": 0.01907
}

Semantic roles & 50–950 ramp

primary
#34174F
secondary
#60863C
accent
#DE4A91
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #34174F

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

Preview Lab → · Contrast checker → · Palette generator →

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