#340F17#340F17

#340F17 is a very dark, moderate red. Relative luminance 0.011; OKLCH L 23.2% C 0.060 H 9.8°. Best body text is #FFFFFF at 17.12:1 contrast (WCAG AA passes).

Color values

HEX#340F17
RGBrgb(52, 15, 23)
HSLhsl(347, 55%, 13%)
HSVhsv(347, 71%, 20%)
CMYKcmyk(0%, 71.2%, 55.8%, 79.6%)
CIE-LABlab(10.06, 19.50, 3.93)
CIE-LCHlch(10.06, 19.89, 11.41°)
OKLaboklab(23.23% 0.0592 0.0102)
OKLCHoklch(23.23% 0.06 9.8)
XYZxyz(1.7418, 1.1338, 0.9376)
Luminance0.0113 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F17 #0F342C
analogous
#340F29 #340F17 #34190F
triadic
#340F17 #17340F #0F1734
tetradic
#340F17 #29340F #0F342C #190F34
square
#340F17 #29340F #0F342C #190F34
split-complementary
#340F17 #0F3419 #0F2934
monochromatic
#18070B #18070B #340F17 #631D2C #932A41

Accessibility & contrast

On white

17.12
#340F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#340F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F17
17.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F17#FFFFFF#000000##FFFFFF
##340F171.0017.121.2317.12
#FFFFFF17.121.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171717
Deuteranopia (green-blind)
#201E16
Tritanopia (blue-blind)
#390A12
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340f17;
/* rgb */ color: rgb(52, 15, 23);
/* oklch */ color: oklch(23.2% 0.060 9.8);
Tailwind
colors: {
  custom: {
    50: '#6e4f53',
    500: '#340f17',
    950: '#000000',
  },
}
SCSS
$custom: #340f17;
$custom-light: #6e4f53;
$custom-dark: #000000;
JSON
{
  "hex": "#340f17",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 23
  },
  "hsl": {
    "h": 347.027,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23228,
    "c": 0.06003,
    "h": 9.8
  },
  "luminance": 0.01134
}

Semantic roles & 50–950 ramp

primary
#340F17
secondary
#316E61
accent
#DFBE49
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070202
muted
#7A7878

Preview Lab

Preview with #340F17

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

Preview Lab → · Contrast checker → · Palette generator →

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