#340312#340312

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

Color values

HEX#340312
RGBrgb(52, 3, 18)
HSLhsl(342, 89%, 11%)
HSVhsv(342, 94%, 20%)
CMYKcmyk(0%, 94.2%, 65.4%, 79.6%)
CIE-LABlab(7.58, 25.38, 3.74)
CIE-LCHlch(7.58, 25.65, 8.38°)
OKLaboklab(21.33% 0.0774 0.011)
OKLCHoklch(21.33% 0.078 8.1)
XYZxyz(1.5581, 0.8391, 0.6521)
Luminance0.0084 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340312 #033425
analogous
#34032A #340312 #340C03
triadic
#340312 #123403 #031234
tetradic
#340312 #2A3403 #033425 #0C0334
square
#340312 #2A3403 #033425 #0C0334
split-complementary
#340312 #03340C #032A34
monochromatic
#1D020A #1D020A #340312 #6E0626 #A80A3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##340312#FFFFFF#000000##FFFFFF
##3403121.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)
#0F1012
Deuteranopia (green-blind)
#1D1A11
Tritanopia (blue-blind)
#3A0009
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #340312;
/* rgb */ color: rgb(52, 3, 18);
/* oklch */ color: oklch(21.3% 0.078 8.1);
Tailwind
colors: {
  custom: {
    50: '#6f484f',
    500: '#340312',
    950: '#000000',
  },
}
SCSS
$custom: #340312;
$custom-light: #6f484f;
$custom-dark: #000000;
JSON
{
  "hex": "#340312",
  "rgb": {
    "r": 52,
    "g": 3,
    "b": 18
  },
  "hsl": {
    "h": 341.633,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.21332,
    "c": 0.07818,
    "h": 8.1
  },
  "luminance": 0.00839
}

Semantic roles & 50–950 ramp

primary
#340312
secondary
#1C775B
accent
#FFBD29
background
#F7F4F4
surface
#EDE7E7
border
#C8C3C3
text
#080102
muted
#7B7778

Preview Lab

Preview with #340312

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

Preview Lab → · Contrast checker → · Palette generator →

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