#340728#340728

#340728 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.9% C 0.083 H 340.8°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#340728
RGBrgb(52, 7, 40)
HSLhsl(316, 76%, 12%)
HSVhsv(316, 87%, 20%)
CMYKcmyk(0%, 86.5%, 23.1%, 79.6%)
CIE-LABlab(9.28, 26.13, -10.11)
CIE-LCHlch(9.28, 28.02, 338.84°)
OKLaboklab(22.89% 0.0781 -0.0272)
OKLCHoklch(22.89% 0.083 340.8)
XYZxyz(1.8752, 1.0354, 2.1082)
Luminance0.0103 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340728 #073413
analogous
#2A0734 #340728 #340712
triadic
#340728 #283407 #072834
tetradic
#340728 #342A07 #073413 #071234
square
#340728 #342A07 #073413 #071234
split-complementary
#340728 #123407 #07342A
monochromatic
#1B0415 #1B0415 #340728 #6A0E51 #A0167B

Accessibility & contrast

On white

17.40
#340728 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#340728 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340728
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340728#FFFFFF#000000##FFFFFF
##3407281.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1529
Deuteranopia (green-blind)
#191D27
Tritanopia (blue-blind)
#380816
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340728;
/* rgb */ color: rgb(52, 7, 40);
/* oklch */ color: oklch(22.9% 0.083 340.8);
Tailwind
colors: {
  custom: {
    50: '#6e4c62',
    500: '#340728',
    950: '#000000',
  },
}
SCSS
$custom: #340728;
$custom-light: #6e4c62;
$custom-dark: #000000;
JSON
{
  "hex": "#340728",
  "rgb": {
    "r": 52,
    "g": 7,
    "b": 40
  },
  "hsl": {
    "h": 316,
    "s": 76.271,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22892,
    "c": 0.08274,
    "h": 340.8
  },
  "luminance": 0.01035
}

Semantic roles & 50–950 ramp

primary
#340728
secondary
#237439
accent
#F36835
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #340728

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

Preview Lab → · Contrast checker → · Palette generator →

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