#340128#340128

#340128 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 22.1% C 0.094 H 339.9°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#340128
RGBrgb(52, 1, 40)
HSLhsl(314, 96%, 10%)
HSVhsv(314, 98%, 20%)
CMYKcmyk(0%, 98.1%, 23.1%, 79.6%)
CIE-LABlab(8.18, 29.32, -11.84)
CIE-LCHlch(8.18, 31.62, 338.01°)
OKLaboklab(22.1% 0.0879 -0.0321)
OKLCHoklch(22.1% 0.094 339.9)
XYZxyz(1.8101, 0.9052, 2.0865)
Luminance0.0091 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340128 #01340D
analogous
#260134 #340128 #34010E
triadic
#340128 #283401 #012834
tetradic
#340128 #342601 #01340D #010E34
square
#340128 #342601 #01340D #010E34
split-complementary
#340128 #0E3401 #013426
monochromatic
#1E0117 #1E0117 #340128 #700256 #AC0384

Accessibility & contrast

On white

17.78
#340128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#340128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340128
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340128#FFFFFF#000000##FFFFFF
##3401281.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041229
Deuteranopia (green-blind)
#161B27
Tritanopia (blue-blind)
#380214
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #340128;
/* rgb */ color: rgb(52, 1, 40);
/* oklch */ color: oklch(22.1% 0.094 339.9);
Tailwind
colors: {
  custom: {
    50: '#6e4862',
    500: '#340128',
    950: '#000000',
  },
}
SCSS
$custom: #340128;
$custom-light: #6e4862;
$custom-dark: #000000;
JSON
{
  "hex": "#340128",
  "rgb": {
    "r": 52,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 314.118,
    "s": 96.226,
    "l": 10.392
  },
  "oklch": {
    "l": 0.22095,
    "c": 0.09353,
    "h": 339.9
  },
  "luminance": 0.00905
}

Semantic roles & 50–950 ramp

primary
#340128
secondary
#18792F
accent
#FF5B29
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #340128

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

Preview Lab → · Contrast checker → · Palette generator →

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