#340526#340526

#340526 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.5% C 0.085 H 342.8°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#340526
RGBrgb(52, 5, 38)
HSLhsl(318, 82%, 11%)
HSVhsv(318, 90%, 20%)
CMYKcmyk(0%, 90.4%, 26.9%, 79.6%)
CIE-LABlab(8.81, 26.82, -9.33)
CIE-LCHlch(8.81, 28.40, 340.81°)
OKLaboklab(22.52% 0.0809 -0.025)
OKLCHoklch(22.52% 0.085 342.8)
XYZxyz(1.8204, 0.9787, 1.9264)
Luminance0.0098 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340526 #053413
analogous
#2A0534 #340526 #34050E
triadic
#340526 #263405 #052634
tetradic
#340526 #342A05 #053413 #050E34
square
#340526 #342A05 #053413 #050E34
split-complementary
#340526 #0E3405 #05342A
monochromatic
#1C0314 #1C0314 #340526 #6C0A4F #A41078

Accessibility & contrast

On white

17.56
#340526 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#340526 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340526
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340526#FFFFFF#000000##FFFFFF
##3405261.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091427
Deuteranopia (green-blind)
#191C25
Tritanopia (blue-blind)
#380514
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #340526;
/* rgb */ color: rgb(52, 5, 38);
/* oklch */ color: oklch(22.5% 0.085 342.8);
Tailwind
colors: {
  custom: {
    50: '#6e4a60',
    500: '#340526',
    950: '#000000',
  },
}
SCSS
$custom: #340526;
$custom-light: #6e4a60;
$custom-dark: #000000;
JSON
{
  "hex": "#340526",
  "rgb": {
    "r": 52,
    "g": 5,
    "b": 38
  },
  "hsl": {
    "h": 317.872,
    "s": 82.456,
    "l": 11.176
  },
  "oklch": {
    "l": 0.22516,
    "c": 0.08465,
    "h": 342.8
  },
  "luminance": 0.00979
}

Semantic roles & 50–950 ramp

primary
#340526
secondary
#1F7539
accent
#F96B2F
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #340526

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

Preview Lab → · Contrast checker → · Palette generator →

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