#340227#340227

#340227 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 22.2% C 0.091 H 341.2°. Best body text is #FFFFFF at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#340227
RGBrgb(52, 2, 39)
HSLhsl(316, 93%, 11%)
HSVhsv(316, 96%, 20%)
CMYKcmyk(0%, 96.2%, 25%, 79.6%)
CIE-LABlab(8.31, 28.60, -10.87)
CIE-LCHlch(8.31, 30.60, 339.18°)
OKLaboklab(22.17% 0.086 -0.0293)
OKLCHoklch(22.17% 0.091 341.2)
XYZxyz(1.8042, 0.9202, 2.0017)
Luminance0.0092 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340227 #02340F
analogous
#280234 #340227 #34020E
triadic
#340227 #273402 #022734
tetradic
#340227 #342802 #02340F #020E34
square
#340227 #342802 #02340F #020E34
split-complementary
#340227 #0E3402 #023428
monochromatic
#1D0116 #1D0116 #340227 #6F0453 #AA077F

Accessibility & contrast

On white

17.74
#340227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340227
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340227#FFFFFF#000000##FFFFFF
##3402271.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061328
Deuteranopia (green-blind)
#171B26
Tritanopia (blue-blind)
#380313
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #340227;
/* rgb */ color: rgb(52, 2, 39);
/* oklch */ color: oklch(22.2% 0.091 341.2);
Tailwind
colors: {
  custom: {
    50: '#6e4961',
    500: '#340227',
    950: '#000000',
  },
}
SCSS
$custom: #340227;
$custom-light: #6e4961;
$custom-dark: #000000;
JSON
{
  "hex": "#340227",
  "rgb": {
    "r": 52,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 315.6,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.2217,
    "c": 0.09089,
    "h": 341.2
  },
  "luminance": 0.0092
}

Semantic roles & 50–950 ramp

primary
#340227
secondary
#1A7832
accent
#FF6029
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070105
muted
#7A7779

Preview Lab

Preview with #340227

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

Preview Lab → · Contrast checker → · Palette generator →

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