#340A2A#340A2A

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

Color values

HEX#340A2A
RGBrgb(52, 10, 42)
HSLhsl(314, 68%, 12%)
HSVhsv(314, 81%, 20%)
CMYKcmyk(0%, 80.8%, 19.2%, 79.6%)
CIE-LABlab(9.91, 25.02, -10.63)
CIE-LCHlch(9.91, 27.19, 336.97°)
OKLaboklab(23.38% 0.0741 -0.0288)
OKLCHoklch(23.38% 0.079 338.8)
XYZxyz(1.9427, 1.1145, 2.3028)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A2A #0A3414
analogous
#290A34 #340A2A #340A15
triadic
#340A2A #2A340A #0A2A34
tetradic
#340A2A #34290A #0A3414 #0A1534
square
#340A2A #34290A #0A3414 #0A1534
split-complementary
#340A2A #15340A #0A3429
monochromatic
#1A0515 #1A0515 #340A2A #671453 #9B1E7D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##340A2A#FFFFFF#000000##FFFFFF
##340A2A1.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)
#0C172B
Deuteranopia (green-blind)
#191E29
Tritanopia (blue-blind)
#370C18
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340a2a;
/* rgb */ color: rgb(52, 10, 42);
/* oklch */ color: oklch(23.4% 0.079 338.8);
Tailwind
colors: {
  custom: {
    50: '#6d4d63',
    500: '#340a2a',
    950: '#000000',
  },
}
SCSS
$custom: #340a2a;
$custom-light: #6d4d63;
$custom-dark: #000000;
JSON
{
  "hex": "#340a2a",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 42
  },
  "hsl": {
    "h": 314.286,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23384,
    "c": 0.07949,
    "h": 338.8
  },
  "luminance": 0.01114
}

Semantic roles & 50–950 ramp

primary
#340A2A
secondary
#28713A
accent
#EB663D
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #340A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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