#340A0C#340A0C

#340A0C is a very dark, moderate red. Relative luminance 0.010; OKLCH L 22.2% C 0.067 H 21.9°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#340A0C
RGBrgb(52, 10, 12)
HSLhsl(357, 68%, 12%)
HSVhsv(357, 81%, 20%)
CMYKcmyk(0%, 80.8%, 76.9%, 79.6%)
CIE-LABlab(8.77, 21.13, 8.66)
CIE-LCHlch(8.77, 22.84, 22.28°)
OKLaboklab(22.17% 0.0623 0.0251)
OKLCHoklch(22.17% 0.067 21.9)
XYZxyz(1.5912, 0.9739, 0.4520)
Luminance0.0097 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A0C #0A3432
analogous
#340A21 #340A0C #341D0A
triadic
#340A0C #0C340A #0A0C34
tetradic
#340A0C #21340A #0A3432 #1D0A34
square
#340A0C #21340A #0A3432 #1D0A34
split-complementary
#340A0C #0A341D #0A2134
monochromatic
#1A0506 #1A0506 #340A0C #671418 #9B1E24

Accessibility & contrast

On white

17.58
#340A0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#340A0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A0C
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A0C#FFFFFF#000000##FFFFFF
##340A0C1.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15130C
Deuteranopia (green-blind)
#201C0B
Tritanopia (blue-blind)
#3A020B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #340a0c;
/* rgb */ color: rgb(52, 10, 12);
/* oklch */ color: oklch(22.2% 0.067 21.9);
Tailwind
colors: {
  custom: {
    50: '#6f4c4c',
    500: '#340a0c',
    950: '#000000',
  },
}
SCSS
$custom: #340a0c;
$custom-light: #6f4c4c;
$custom-dark: #000000;
JSON
{
  "hex": "#340a0c",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 12
  },
  "hsl": {
    "h": 357.143,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22172,
    "c": 0.06719,
    "h": 21.9
  },
  "luminance": 0.00974
}

Semantic roles & 50–950 ramp

primary
#340A0C
secondary
#28716E
accent
#EBE23D
background
#F7F4F4
surface
#EDE7E7
border
#C8C3C3
text
#080101
muted
#7B7777

Preview Lab

Preview with #340A0C

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

Preview Lab → · Contrast checker → · Palette generator →

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