#340F18#340F18

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

Color values

HEX#340F18
RGBrgb(52, 15, 24)
HSLhsl(345, 55%, 13%)
HSVhsv(345, 71%, 20%)
CMYKcmyk(0%, 71.2%, 53.8%, 79.6%)
CIE-LABlab(10.09, 19.62, 3.22)
CIE-LCHlch(10.09, 19.88, 9.33°)
OKLaboklab(23.26% 0.0596 0.0084)
OKLCHoklch(23.26% 0.06 8)
XYZxyz(1.7520, 1.1379, 0.9913)
Luminance0.0114 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F18 #0F342B
analogous
#340F2A #340F18 #34180F
triadic
#340F18 #18340F #0F1834
tetradic
#340F18 #2A340F #0F342B #180F34
square
#340F18 #2A340F #0F342B #180F34
split-complementary
#340F18 #0F3418 #0F2A34
monochromatic
#18070B #18070B #340F18 #631D2E #932A44

Accessibility & contrast

On white

17.11
#340F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F18
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F18#FFFFFF#000000##FFFFFF
##340F181.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340f18;
/* rgb */ color: rgb(52, 15, 24);
/* oklch */ color: oklch(23.3% 0.060 8.0);
Tailwind
colors: {
  custom: {
    50: '#6e4f54',
    500: '#340f18',
    950: '#000000',
  },
}
SCSS
$custom: #340f18;
$custom-light: #6e4f54;
$custom-dark: #000000;
JSON
{
  "hex": "#340f18",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 24
  },
  "hsl": {
    "h": 345.405,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23261,
    "c": 0.06023,
    "h": 8
  },
  "luminance": 0.01138
}

Semantic roles & 50–950 ramp

primary
#340F18
secondary
#316E5F
accent
#DFBA49
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070202
muted
#7A7878

Preview Lab

Preview with #340F18

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

Preview Lab → · Contrast checker → · Palette generator →

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