#340C0C#340C0C

#340C0C is a very dark, moderate red. Relative luminance 0.010; OKLCH L 22.5% C 0.065 H 23.9°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#340C0C
RGBrgb(52, 12, 12)
HSLhsl(0, 63%, 13%)
HSVhsv(0, 77%, 20%)
CMYKcmyk(0%, 76.9%, 76.9%, 79.6%)
CIE-LABlab(9.16, 20.09, 9.21)
CIE-LCHlch(9.16, 22.10, 24.63°)
OKLaboklab(22.46% 0.059 0.0262)
OKLCHoklch(22.46% 0.065 23.9)
XYZxyz(1.6142, 1.0198, 0.4596)
Luminance0.0102 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C0C #0C3434
analogous
#340C20 #340C0C #34200C
triadic
#340C0C #0C340C #0C0C34
tetradic
#340C0C #20340C #0C3434 #200C34
square
#340C0C #20340C #0C3434 #200C34
split-complementary
#340C0C #0C3420 #0C2034
monochromatic
#190606 #190606 #340C0C #661717 #972323

Accessibility & contrast

On white

17.44
#340C0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C0C
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C0C#FFFFFF#000000##FFFFFF
##340C0C1.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17140C
Deuteranopia (green-blind)
#211D0B
Tritanopia (blue-blind)
#3A040C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340c0c;
/* rgb */ color: rgb(52, 12, 12);
/* oklch */ color: oklch(22.5% 0.065 23.9);
Tailwind
colors: {
  custom: {
    50: '#6f4d4c',
    500: '#340c0c',
    950: '#000000',
  },
}
SCSS
$custom: #340c0c;
$custom-light: #6f4d4c;
$custom-dark: #000000;
JSON
{
  "hex": "#340c0c",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 12
  },
  "hsl": {
    "h": 0,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.22459,
    "c": 0.06458,
    "h": 23.9
  },
  "luminance": 0.0102
}

Semantic roles & 50–950 ramp

primary
#340C0C
secondary
#2C7070
accent
#E6E642
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#080101
muted
#7B7777

Preview Lab

Preview with #340C0C

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

Preview Lab → · Contrast checker → · Palette generator →

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