#340318#340318

#340318 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.6% C 0.080 H 0.0°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#340318
RGBrgb(52, 3, 24)
HSLhsl(334, 89%, 11%)
HSVhsv(334, 94%, 20%)
CMYKcmyk(0%, 94.2%, 53.8%, 79.6%)
CIE-LABlab(7.78, 26.00, -0.11)
CIE-LCHlch(7.78, 26.00, 359.77°)
OKLaboklab(21.55% 0.0801 0)
OKLCHoklch(21.55% 0.08 0)
XYZxyz(1.6137, 0.8614, 0.9453)
Luminance0.0086 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340318 #03341F
analogous
#340330 #340318 #340703
triadic
#340318 #183403 #031834
tetradic
#340318 #303403 #03341F #070334
square
#340318 #303403 #03341F #070334
split-complementary
#340318 #033407 #033034
monochromatic
#1D020D #1D020D #340318 #6E0633 #A80A4D

Accessibility & contrast

On white

17.92
#340318 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#340318 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340318
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340318#FFFFFF#000000##FFFFFF
##3403181.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1119
Deuteranopia (green-blind)
#1C1B17
Tritanopia (blue-blind)
#39000C
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #340318;
/* rgb */ color: rgb(52, 3, 24);
/* oklch */ color: oklch(21.6% 0.080 0.0);
Tailwind
colors: {
  custom: {
    50: '#6f4954',
    500: '#340318',
    950: '#000000',
  },
}
SCSS
$custom: #340318;
$custom-light: #6f4954;
$custom-dark: #000000;
JSON
{
  "hex": "#340318",
  "rgb": {
    "r": 52,
    "g": 3,
    "b": 24
  },
  "hsl": {
    "h": 334.286,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.21551,
    "c": 0.08006,
    "h": 0
  },
  "luminance": 0.00861
}

Semantic roles & 50–950 ramp

primary
#340318
secondary
#1C7750
accent
#FFA329
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#080102
muted
#7B7778

Preview Lab

Preview with #340318

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

Preview Lab → · Contrast checker → · Palette generator →

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