#340F27#340F27

#340F27 is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 23.9% C 0.068 H 343.7°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#340F27
RGBrgb(52, 15, 39)
HSLhsl(321, 55%, 13%)
HSVhsv(321, 71%, 20%)
CMYKcmyk(0%, 71.2%, 25%, 79.6%)
CIE-LABlab(10.69, 21.90, -7.20)
CIE-LCHlch(10.69, 23.05, 341.81°)
OKLaboklab(23.91% 0.0656 -0.0192)
OKLCHoklch(23.91% 0.068 343.7)
XYZxyz(1.9533, 1.2184, 2.0514)
Luminance0.0122 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F27 #0F341C
analogous
#2E0F34 #340F27 #340F14
triadic
#340F27 #27340F #0F2734
tetradic
#340F27 #342E0F #0F341C #0F1434
square
#340F27 #342E0F #0F341C #0F1434
split-complementary
#340F27 #14340F #0F342E
monochromatic
#180712 #180712 #340F27 #631D4B #932A6E

Accessibility & contrast

On white

16.89
#340F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340F27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F27
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F27#FFFFFF#000000##FFFFFF
##340F271.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121928
Deuteranopia (green-blind)
#1D1F26
Tritanopia (blue-blind)
#380F19
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340f27;
/* rgb */ color: rgb(52, 15, 39);
/* oklch */ color: oklch(23.9% 0.068 343.7);
Tailwind
colors: {
  custom: {
    50: '#6d5061',
    500: '#340f27',
    950: '#000000',
  },
}
SCSS
$custom: #340f27;
$custom-light: #6d5061;
$custom-dark: #000000;
JSON
{
  "hex": "#340f27",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 39
  },
  "hsl": {
    "h": 321.081,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23905,
    "c": 0.06832,
    "h": 343.7
  },
  "luminance": 0.01218
}

Semantic roles & 50–950 ramp

primary
#340F27
secondary
#316E46
accent
#DF7E49
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070205
muted
#7A7879

Preview Lab

Preview with #340F27

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

Preview Lab → · Contrast checker → · Palette generator →

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