#340F2B#340F2B

#340F2B is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 24.1% C 0.072 H 338.2°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#340F2B
RGBrgb(52, 15, 43)
HSLhsl(315, 55%, 13%)
HSVhsv(315, 71%, 20%)
CMYKcmyk(0%, 71.2%, 17.3%, 79.6%)
CIE-LABlab(10.89, 22.64, -9.85)
CIE-LCHlch(10.89, 24.69, 336.48°)
OKLaboklab(24.12% 0.0667 -0.0266)
OKLCHoklch(24.12% 0.072 338.2)
XYZxyz(2.0231, 1.2463, 2.4190)
Luminance0.0125 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F2B #0F3418
analogous
#2A0F34 #340F2B #340F18
triadic
#340F2B #2B340F #0F2B34
tetradic
#340F2B #342A0F #0F3418 #0F1834
square
#340F2B #342A0F #0F3418 #0F1834
split-complementary
#340F2B #18340F #0F342A
monochromatic
#180714 #180714 #340F2B #631D52 #932A7A

Accessibility & contrast

On white

16.81
#340F2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#340F2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F2B
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F2B#FFFFFF#000000##FFFFFF
##340F2B1.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101A2C
Deuteranopia (green-blind)
#1B1F2A
Tritanopia (blue-blind)
#37101B
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340f2b;
/* rgb */ color: rgb(52, 15, 43);
/* oklch */ color: oklch(24.1% 0.072 338.2);
Tailwind
colors: {
  custom: {
    50: '#6d5064',
    500: '#340f2b',
    950: '#000000',
  },
}
SCSS
$custom: #340f2b;
$custom-light: #6d5064;
$custom-dark: #000000;
JSON
{
  "hex": "#340f2b",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 43
  },
  "hsl": {
    "h": 314.595,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24121,
    "c": 0.07177,
    "h": 338.2
  },
  "luminance": 0.01246
}

Semantic roles & 50–950 ramp

primary
#340F2B
secondary
#316E40
accent
#DF6E49
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070205
muted
#7A7879

Preview Lab

Preview with #340F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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