#340B27#340B27

#340B27 is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.3% C 0.075 H 342.7°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#340B27
RGBrgb(52, 11, 39)
HSLhsl(319, 65%, 12%)
HSVhsv(319, 79%, 20%)
CMYKcmyk(0%, 78.8%, 25%, 79.6%)
CIE-LABlab(9.92, 24.01, -8.37)
CIE-LCHlch(9.92, 25.43, 340.77°)
OKLaboklab(23.34% 0.072 -0.0224)
OKLCHoklch(23.34% 0.075 342.7)
XYZxyz(1.9021, 1.1161, 2.0343)
Luminance0.0112 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B27 #0B3418
analogous
#2C0B34 #340B27 #340B13
triadic
#340B27 #27340B #0B2734
tetradic
#340B27 #342C0B #0B3418 #0B1334
square
#340B27 #342C0B #0B3418 #0B1334
split-complementary
#340B27 #13340B #0B342C
monochromatic
#190513 #190513 #340B27 #67164D #992073

Accessibility & contrast

On white

17.17
#340B27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#340B27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340B27
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B27#FFFFFF#000000##FFFFFF
##340B271.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1728
Deuteranopia (green-blind)
#1B1E26
Tritanopia (blue-blind)
#380B17
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340b27;
/* rgb */ color: rgb(52, 11, 39);
/* oklch */ color: oklch(23.3% 0.075 342.7);
Tailwind
colors: {
  custom: {
    50: '#6d4d61',
    500: '#340b27',
    950: '#000000',
  },
}
SCSS
$custom: #340b27;
$custom-light: #6d4d61;
$custom-dark: #000000;
JSON
{
  "hex": "#340b27",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 39
  },
  "hsl": {
    "h": 319.024,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.2334,
    "c": 0.07538,
    "h": 342.7
  },
  "luminance": 0.01116
}

Semantic roles & 50–950 ramp

primary
#340B27
secondary
#2A7140
accent
#E87540
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070105
muted
#7A7779

Preview Lab

Preview with #340B27

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

Preview Lab → · Contrast checker → · Palette generator →

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