#340226#340226

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

Color values

HEX#340226
RGBrgb(52, 2, 38)
HSLhsl(317, 93%, 11%)
HSVhsv(317, 96%, 20%)
CMYKcmyk(0%, 96.2%, 26.9%, 79.6%)
CIE-LABlab(8.25, 28.45, -10.21)
CIE-LCHlch(8.25, 30.22, 340.26°)
OKLaboklab(22.11% 0.0859 -0.0274)
OKLCHoklch(22.11% 0.09 342.3)
XYZxyz(1.7878, 0.9136, 1.9155)
Luminance0.0091 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340226 #023410
analogous
#290234 #340226 #34020D
triadic
#340226 #263402 #022634
tetradic
#340226 #342902 #023410 #020D34
square
#340226 #342902 #023410 #020D34
split-complementary
#340226 #0D3402 #023429
monochromatic
#1D0116 #1D0116 #340226 #6F0451 #AA077C

Accessibility & contrast

On white

17.76
#340226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340226
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340226#FFFFFF#000000##FFFFFF
##3402261.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061327
Deuteranopia (green-blind)
#171B25
Tritanopia (blue-blind)
#380213
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #340226;
/* rgb */ color: rgb(52, 2, 38);
/* oklch */ color: oklch(22.1% 0.090 342.3);
Tailwind
colors: {
  custom: {
    50: '#6e4960',
    500: '#340226',
    950: '#000000',
  },
}
SCSS
$custom: #340226;
$custom-light: #6e4960;
$custom-dark: #000000;
JSON
{
  "hex": "#340226",
  "rgb": {
    "r": 52,
    "g": 2,
    "b": 38
  },
  "hsl": {
    "h": 316.8,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.2211,
    "c": 0.09016,
    "h": 342.3
  },
  "luminance": 0.00913
}

Semantic roles & 50–950 ramp

primary
#340226
secondary
#1A7834
accent
#FF6529
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #340226

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

Preview Lab → · Contrast checker → · Palette generator →

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