#340B0C#340B0C

#340B0C is a very dark, moderate red. Relative luminance 0.010; OKLCH L 22.3% C 0.066 H 22.9°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#340B0C
RGBrgb(52, 11, 12)
HSLhsl(359, 65%, 12%)
HSVhsv(359, 79%, 20%)
CMYKcmyk(0%, 78.8%, 76.9%, 79.6%)
CIE-LABlab(8.96, 20.62, 8.93)
CIE-LCHlch(8.96, 22.47, 23.41°)
OKLaboklab(22.31% 0.0607 0.0256)
OKLCHoklch(22.31% 0.066 22.9)
XYZxyz(1.6024, 0.9962, 0.4557)
Luminance0.0100 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B0C #0B3433
analogous
#340B20 #340B0C #341F0B
triadic
#340B0C #0C340B #0B0C34
tetradic
#340B0C #20340B #0B3433 #1F0B34
square
#340B0C #20340B #0B3433 #1F0B34
split-complementary
#340B0C #0B341F #0B2034
monochromatic
#190506 #190506 #340B0C #671618 #992023

Accessibility & contrast

On white

17.51
#340B0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B0C
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B0C#FFFFFF#000000##FFFFFF
##340B0C1.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16140C
Deuteranopia (green-blind)
#201D0B
Tritanopia (blue-blind)
#3A030C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #340b0c;
/* rgb */ color: rgb(52, 11, 12);
/* oklch */ color: oklch(22.3% 0.066 22.9);
Tailwind
colors: {
  custom: {
    50: '#6f4d4c',
    500: '#340b0c',
    950: '#000000',
  },
}
SCSS
$custom: #340b0c;
$custom-light: #6f4d4c;
$custom-dark: #000000;
JSON
{
  "hex": "#340b0c",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 12
  },
  "hsl": {
    "h": 358.537,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22313,
    "c": 0.06589,
    "h": 22.9
  },
  "luminance": 0.00996
}

Semantic roles & 50–950 ramp

primary
#340B0C
secondary
#2A716F
accent
#E8E440
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#080101
muted
#7B7777

Preview Lab

Preview with #340B0C

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

Preview Lab → · Contrast checker → · Palette generator →

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