#340818#340818

#340818 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.3% C 0.071 H 2.9°. Best body text is #FFFFFF at 17.59:1 contrast (WCAG AA passes).

Color values

HEX#340818
RGBrgb(52, 8, 24)
HSLhsl(338, 73%, 12%)
HSVhsv(338, 85%, 20%)
CMYKcmyk(0%, 84.6%, 53.8%, 79.6%)
CIE-LABlab(8.74, 23.30, 1.29)
CIE-LCHlch(8.74, 23.34, 3.16°)
OKLaboklab(22.26% 0.0714 0.0036)
OKLCHoklch(22.26% 0.071 2.9)
XYZxyz(1.6680, 0.9699, 0.9633)
Luminance0.0097 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340818 #083424
analogous
#34082E #340818 #340E08
triadic
#340818 #183408 #081834
tetradic
#340818 #2E3408 #083424 #0E0834
square
#340818 #2E3408 #083424 #0E0834
split-complementary
#340818 #08340E #082E34
monochromatic
#1B040C #1B040C #340818 #691030 #9E1849

Accessibility & contrast

On white

17.59
#340818 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#340818 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340818
17.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340818#FFFFFF#000000##FFFFFF
##3408181.0017.591.1917.59
#FFFFFF17.591.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121318
Deuteranopia (green-blind)
#1D1C17
Tritanopia (blue-blind)
#39030F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #340818;
/* rgb */ color: rgb(52, 8, 24);
/* oklch */ color: oklch(22.3% 0.071 2.9);
Tailwind
colors: {
  custom: {
    50: '#6f4b54',
    500: '#340818',
    950: '#000000',
  },
}
SCSS
$custom: #340818;
$custom-light: #6f4b54;
$custom-dark: #000000;
JSON
{
  "hex": "#340818",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 24
  },
  "hsl": {
    "h": 338.182,
    "s": 73.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22256,
    "c": 0.07144,
    "h": 2.9
  },
  "luminance": 0.0097
}

Semantic roles & 50–950 ramp

primary
#340818
secondary
#257357
accent
#F0AD38
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#080102
muted
#7B7778

Preview Lab

Preview with #340818

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

Preview Lab → · Contrast checker → · Palette generator →

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