#340727#340727

#340727 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.8% C 0.082 H 342.0°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#340727
RGBrgb(52, 7, 39)
HSLhsl(317, 76%, 12%)
HSVhsv(317, 87%, 20%)
CMYKcmyk(0%, 86.5%, 25%, 79.6%)
CIE-LABlab(9.23, 25.96, -9.45)
CIE-LCHlch(9.23, 27.62, 340.00°)
OKLaboklab(22.83% 0.0779 -0.0254)
OKLCHoklch(22.83% 0.082 342)
XYZxyz(1.8584, 1.0287, 2.0197)
Luminance0.0103 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340727 #073414
analogous
#2B0734 #340727 #340711
triadic
#340727 #273407 #072734
tetradic
#340727 #342B07 #073414 #071134
square
#340727 #342B07 #073414 #071134
split-complementary
#340727 #113407 #07342B
monochromatic
#1B0414 #1B0414 #340727 #6A0E4F #A01678

Accessibility & contrast

On white

17.42
#340727 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340727
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340727#FFFFFF#000000##FFFFFF
##3407271.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340727;
/* rgb */ color: rgb(52, 7, 39);
/* oklch */ color: oklch(22.8% 0.082 342.0);
Tailwind
colors: {
  custom: {
    50: '#6e4b61',
    500: '#340727',
    950: '#000000',
  },
}
SCSS
$custom: #340727;
$custom-light: #6e4b61;
$custom-dark: #000000;
JSON
{
  "hex": "#340727",
  "rgb": {
    "r": 52,
    "g": 7,
    "b": 39
  },
  "hsl": {
    "h": 317.333,
    "s": 76.271,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22834,
    "c": 0.08195,
    "h": 342
  },
  "luminance": 0.01029
}

Semantic roles & 50–950 ramp

primary
#340727
secondary
#23743A
accent
#F36C35
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070105
muted
#7A7779

Preview Lab

Preview with #340727

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

Preview Lab → · Contrast checker → · Palette generator →

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