#340218#340218

#340218 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.4% C 0.082 H 359.5°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#340218
RGBrgb(52, 2, 24)
HSLhsl(334, 93%, 11%)
HSVhsv(334, 96%, 20%)
CMYKcmyk(0%, 96.2%, 53.8%, 79.6%)
CIE-LABlab(7.58, 26.56, -0.39)
CIE-LCHlch(7.58, 26.56, 359.16°)
OKLaboklab(21.4% 0.0819 -0.0007)
OKLCHoklch(21.4% 0.082 359.5)
XYZxyz(1.6029, 0.8397, 0.9416)
Luminance0.0084 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340218 #02341E
analogous
#340231 #340218 #340502
triadic
#340218 #183402 #021834
tetradic
#340218 #313402 #02341E #050234
square
#340218 #313402 #02341E #050234
split-complementary
#340218 #023405 #023134
monochromatic
#1D010E #1D010E #340218 #6F0433 #AA074E

Accessibility & contrast

On white

17.98
#340218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#340218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340218
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340218#FFFFFF#000000##FFFFFF
##3402181.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1019
Deuteranopia (green-blind)
#1B1A17
Tritanopia (blue-blind)
#39000B
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #340218;
/* rgb */ color: rgb(52, 2, 24);
/* oklch */ color: oklch(21.4% 0.082 359.5);
Tailwind
colors: {
  custom: {
    50: '#6f4854',
    500: '#340218',
    950: '#000000',
  },
}
SCSS
$custom: #340218;
$custom-light: #6f4854;
$custom-dark: #000000;
JSON
{
  "hex": "#340218",
  "rgb": {
    "r": 52,
    "g": 2,
    "b": 24
  },
  "hsl": {
    "h": 333.6,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21404,
    "c": 0.08193,
    "h": 359.5
  },
  "luminance": 0.00839
}

Semantic roles & 50–950 ramp

primary
#340218
secondary
#1A784F
accent
#FFA129
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#080102
muted
#7B7778

Preview Lab

Preview with #340218

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

Preview Lab → · Contrast checker → · Palette generator →

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