#340418#340418

#340418 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.7% C 0.078 H 0.5°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#340418
RGBrgb(52, 4, 24)
HSLhsl(335, 86%, 11%)
HSVhsv(335, 92%, 20%)
CMYKcmyk(0%, 92.3%, 53.8%, 79.6%)
CIE-LABlab(7.98, 25.45, 0.18)
CIE-LCHlch(7.98, 25.45, 0.41°)
OKLaboklab(21.7% 0.0782 0.0008)
OKLCHoklch(21.7% 0.078 0.5)
XYZxyz(1.6246, 0.8831, 0.9489)
Luminance0.0088 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340418 #043420
analogous
#340430 #340418 #340804
triadic
#340418 #183404 #041834
tetradic
#340418 #303404 #043420 #080434
square
#340418 #303404 #043420 #080434
split-complementary
#340418 #043408 #043034
monochromatic
#1C020D #1C020D #340418 #6D0832 #A60D4C

Accessibility & contrast

On white

17.85
#340418 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#340418 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340418
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340418#FFFFFF#000000##FFFFFF
##3404181.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1118
Deuteranopia (green-blind)
#1C1B17
Tritanopia (blue-blind)
#39000C
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #340418;
/* rgb */ color: rgb(52, 4, 24);
/* oklch */ color: oklch(21.7% 0.078 0.5);
Tailwind
colors: {
  custom: {
    50: '#6f4954',
    500: '#340418',
    950: '#000000',
  },
}
SCSS
$custom: #340418;
$custom-light: #6f4954;
$custom-dark: #000000;
JSON
{
  "hex": "#340418",
  "rgb": {
    "r": 52,
    "g": 4,
    "b": 24
  },
  "hsl": {
    "h": 335,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21696,
    "c": 0.07823,
    "h": 0.5
  },
  "luminance": 0.00883
}

Semantic roles & 50–950 ramp

primary
#340418
secondary
#1E7651
accent
#FCA52C
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#080102
muted
#7B7778

Preview Lab

Preview with #340418

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

Preview Lab → · Contrast checker → · Palette generator →

#340418 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva