#340221#340221

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

Color values

HEX#340221
RGBrgb(52, 2, 33)
HSLhsl(323, 93%, 11%)
HSVhsv(323, 96%, 20%)
CMYKcmyk(0%, 96.2%, 36.5%, 79.6%)
CIE-LABlab(7.98, 27.71, -6.80)
CIE-LCHlch(7.98, 28.54, 346.22°)
OKLaboklab(21.83% 0.0849 -0.0179)
OKLCHoklch(21.83% 0.087 348.1)
XYZxyz(1.7125, 0.8835, 1.5189)
Luminance0.0088 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340221 #023415
analogous
#2E0234 #340221 #340208
triadic
#340221 #213402 #022134
tetradic
#340221 #342E02 #023415 #020834
square
#340221 #342E02 #023415 #020834
split-complementary
#340221 #083402 #02342E
monochromatic
#1D0113 #1D0113 #340221 #6F0446 #AA076C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##340221#FFFFFF#000000##FFFFFF
##3402211.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)
#091222
Deuteranopia (green-blind)
#191B20
Tritanopia (blue-blind)
#390010
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #340221;
/* rgb */ color: rgb(52, 2, 33);
/* oklch */ color: oklch(21.8% 0.087 348.1);
Tailwind
colors: {
  custom: {
    50: '#6e485c',
    500: '#340221',
    950: '#000000',
  },
}
SCSS
$custom: #340221;
$custom-light: #6e485c;
$custom-dark: #000000;
JSON
{
  "hex": "#340221",
  "rgb": {
    "r": 52,
    "g": 2,
    "b": 33
  },
  "hsl": {
    "h": 322.8,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21829,
    "c": 0.08674,
    "h": 348.1
  },
  "luminance": 0.00883
}

Semantic roles & 50–950 ramp

primary
#340221
secondary
#1A783E
accent
#FF7A29
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #340221

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

Preview Lab → · Contrast checker → · Palette generator →

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