#340817#340817

#340817 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.2% C 0.071 H 4.3°. Best body text is #FFFFFF at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#340817
RGBrgb(52, 8, 23)
HSLhsl(340, 73%, 12%)
HSVhsv(340, 85%, 20%)
CMYKcmyk(0%, 84.6%, 55.8%, 79.6%)
CIE-LABlab(8.70, 23.19, 2.00)
CIE-LCHlch(8.70, 23.27, 4.92°)
OKLaboklab(22.22% 0.0709 0.0054)
OKLCHoklch(22.22% 0.071 4.3)
XYZxyz(1.6578, 0.9658, 0.9096)
Luminance0.0097 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340817 #083425
analogous
#34082D #340817 #340F08
triadic
#340817 #173408 #081734
tetradic
#340817 #2D3408 #083425 #0F0834
square
#340817 #2D3408 #083425 #0F0834
split-complementary
#340817 #08340F #082D34
monochromatic
#1B040C #1B040C #340817 #69102E #9E1846

Accessibility & contrast

On white

17.60
#340817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#340817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340817
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340817#FFFFFF#000000##FFFFFF
##3408171.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121317
Deuteranopia (green-blind)
#1E1C16
Tritanopia (blue-blind)
#39030E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #340817;
/* rgb */ color: rgb(52, 8, 23);
/* oklch */ color: oklch(22.2% 0.071 4.3);
Tailwind
colors: {
  custom: {
    50: '#6f4b53',
    500: '#340817',
    950: '#000000',
  },
}
SCSS
$custom: #340817;
$custom-light: #6f4b53;
$custom-dark: #000000;
JSON
{
  "hex": "#340817",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 23
  },
  "hsl": {
    "h": 339.545,
    "s": 73.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22219,
    "c": 0.0711,
    "h": 4.3
  },
  "luminance": 0.00966
}

Semantic roles & 50–950 ramp

primary
#340817
secondary
#257358
accent
#F0B138
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#080102
muted
#7B7778

Preview Lab

Preview with #340817

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

Preview Lab → · Contrast checker → · Palette generator →

#340817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva