#340C0F#340C0F

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

Color values

HEX#340C0F
RGBrgb(52, 12, 15)
HSLhsl(356, 63%, 13%)
HSVhsv(356, 77%, 20%)
CMYKcmyk(0%, 76.9%, 71.2%, 79.6%)
CIE-LABlab(9.22, 20.34, 7.83)
CIE-LCHlch(9.22, 21.79, 21.05°)
OKLaboklab(22.53% 0.0605 0.0216)
OKLCHoklch(22.53% 0.064 19.6)
XYZxyz(1.6340, 1.0277, 0.5642)
Luminance0.0103 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C0F #0C3431
analogous
#340C23 #340C0F #341D0C
triadic
#340C0F #0F340C #0C0F34
tetradic
#340C0F #23340C #0C3431 #1D0C34
square
#340C0F #23340C #0C3431 #1D0C34
split-complementary
#340C0F #0C341D #0C2334
monochromatic
#190607 #190607 #340C0F #66171D #97232C

Accessibility & contrast

On white

17.42
#340C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#340C0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C0F
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C0F#FFFFFF#000000##FFFFFF
##340C0F1.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16150F
Deuteranopia (green-blind)
#201D0E
Tritanopia (blue-blind)
#3A050D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340c0f;
/* rgb */ color: rgb(52, 12, 15);
/* oklch */ color: oklch(22.5% 0.064 19.6);
Tailwind
colors: {
  custom: {
    50: '#6f4d4e',
    500: '#340c0f',
    950: '#000000',
  },
}
SCSS
$custom: #340c0f;
$custom-light: #6f4d4e;
$custom-dark: #000000;
JSON
{
  "hex": "#340c0f",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 15
  },
  "hsl": {
    "h": 355.5,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.22529,
    "c": 0.06425,
    "h": 19.6
  },
  "luminance": 0.01027
}

Semantic roles & 50–950 ramp

primary
#340C0F
secondary
#2C706B
accent
#E6D942
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#080101
muted
#7B7777

Preview Lab

Preview with #340C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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