#340A17#340A17

#340A17 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.5% C 0.068 H 5.7°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#340A17
RGBrgb(52, 10, 23)
HSLhsl(341, 68%, 12%)
HSVhsv(341, 81%, 20%)
CMYKcmyk(0%, 80.8%, 55.8%, 79.6%)
CIE-LABlab(9.07, 22.18, 2.52)
CIE-LCHlch(9.07, 22.32, 6.48°)
OKLaboklab(22.49% 0.0677 0.0067)
OKLCHoklch(22.49% 0.068 5.7)
XYZxyz(1.6795, 1.0092, 0.9168)
Luminance0.0101 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A17 #0A3427
analogous
#340A2C #340A17 #34120A
triadic
#340A17 #17340A #0A1734
tetradic
#340A17 #2C340A #0A3427 #120A34
square
#340A17 #2C340A #0A3427 #120A34
split-complementary
#340A17 #0A3412 #0A2C34
monochromatic
#1A050B #1A050B #340A17 #67142E #9B1E44

Accessibility & contrast

On white

17.47
#340A17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#340A17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A17
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A17#FFFFFF#000000##FFFFFF
##340A171.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131417
Deuteranopia (green-blind)
#1E1D16
Tritanopia (blue-blind)
#39050F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340a17;
/* rgb */ color: rgb(52, 10, 23);
/* oklch */ color: oklch(22.5% 0.068 5.7);
Tailwind
colors: {
  custom: {
    50: '#6e4c53',
    500: '#340a17',
    950: '#000000',
  },
}
SCSS
$custom: #340a17;
$custom-light: #6e4c53;
$custom-dark: #000000;
JSON
{
  "hex": "#340a17",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 23
  },
  "hsl": {
    "h": 341.429,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22489,
    "c": 0.06801,
    "h": 5.7
  },
  "luminance": 0.01009
}

Semantic roles & 50–950 ramp

primary
#340A17
secondary
#28715B
accent
#EBB53D
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #340A17

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

Preview Lab → · Contrast checker → · Palette generator →

#340A17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva