#340828#340828

#340828 is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.0% C 0.081 H 340.9°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#340828
RGBrgb(52, 8, 40)
HSLhsl(316, 73%, 12%)
HSVhsv(316, 85%, 20%)
CMYKcmyk(0%, 84.6%, 23.1%, 79.6%)
CIE-LABlab(9.46, 25.63, -9.84)
CIE-LCHlch(9.46, 27.46, 339.00°)
OKLaboklab(23.02% 0.0766 -0.0265)
OKLCHoklch(23.02% 0.081 340.9)
XYZxyz(1.8861, 1.0571, 2.1118)
Luminance0.0106 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340828 #083414
analogous
#2A0834 #340828 #340812
triadic
#340828 #283408 #082834
tetradic
#340828 #342A08 #083414 #081234
square
#340828 #342A08 #083414 #081234
split-complementary
#340828 #123408 #08342A
monochromatic
#1B0414 #1B0414 #340828 #691051 #9E187A

Accessibility & contrast

On white

17.34
#340828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340828
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340828#FFFFFF#000000##FFFFFF
##3408281.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340828;
/* rgb */ color: rgb(52, 8, 40);
/* oklch */ color: oklch(23.0% 0.081 340.9);
Tailwind
colors: {
  custom: {
    50: '#6e4c62',
    500: '#340828',
    950: '#000000',
  },
}
SCSS
$custom: #340828;
$custom-light: #6e4c62;
$custom-dark: #000000;
JSON
{
  "hex": "#340828",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 40
  },
  "hsl": {
    "h": 316.364,
    "s": 73.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23019,
    "c": 0.08106,
    "h": 340.9
  },
  "luminance": 0.01057
}

Semantic roles & 50–950 ramp

primary
#340828
secondary
#25733A
accent
#F06A38
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #340828

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

Preview Lab → · Contrast checker → · Palette generator →

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