#34174B#34174B

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

Color values

HEX#34174B
RGBrgb(52, 23, 75)
HSLhsl(273, 53%, 19%)
HSVhsv(273, 69%, 29%)
CMYKcmyk(30.7%, 69.3%, 0%, 70.6%)
CIE-LABlab(14.68, 25.62, -26.66)
CIE-LCHlch(14.68, 36.97, 313.86°)
OKLaboklab(27.56% 0.0566 -0.0754)
OKLCHoklch(27.56% 0.094 306.9)
XYZxyz(2.9923, 1.8509, 6.8549)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34174B #2E4B17
analogous
#1A174B #34174B #4B1748
triadic
#34174B #4B3417 #174B34
tetradic
#34174B #4B1A17 #2E4B17 #17484B
square
#34174B #4B1A17 #2E4B17 #17484B
split-complementary
#34174B #484B17 #174B1A
monochromatic
#100717 #14091C #34174B #54257A #7534A9

Accessibility & contrast

On white

15.33
#34174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34174B
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34174B#FFFFFF#000000##FFFFFF
##34174B1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34174b;
/* rgb */ color: rgb(52, 23, 75);
/* oklch */ color: oklch(27.6% 0.094 306.9);
Tailwind
colors: {
  custom: {
    50: '#6e567e',
    500: '#34174b',
    950: '#000000',
  },
}
SCSS
$custom: #34174b;
$custom-light: #6e567e;
$custom-dark: #000000;
JSON
{
  "hex": "#34174b",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 273.462,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27559,
    "c": 0.09427,
    "h": 306.9
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#34174B
secondary
#5B823C
accent
#DC4B8C
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #34174B

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

Preview Lab → · Contrast checker → · Palette generator →

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