#340228#340228

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

Color values

HEX#340228
RGBrgb(52, 2, 40)
HSLhsl(314, 93%, 11%)
HSVhsv(314, 96%, 20%)
CMYKcmyk(0%, 96.2%, 23.1%, 79.6%)
CIE-LABlab(8.37, 28.76, -11.54)
CIE-LCHlch(8.37, 30.99, 338.14°)
OKLaboklab(22.23% 0.0862 -0.0312)
OKLCHoklch(22.23% 0.092 340.1)
XYZxyz(1.8209, 0.9269, 2.0901)
Luminance0.0093 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340228 #02340E
analogous
#270234 #340228 #34020F
triadic
#340228 #283402 #022834
tetradic
#340228 #342702 #02340E #020F34
square
#340228 #342702 #02340E #020F34
split-complementary
#340228 #0F3402 #023427
monochromatic
#1D0117 #1D0117 #340228 #6F0455 #AA0783

Accessibility & contrast

On white

17.72
#340228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#340228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340228
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340228#FFFFFF#000000##FFFFFF
##3402281.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051329
Deuteranopia (green-blind)
#171B27
Tritanopia (blue-blind)
#380314
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #340228;
/* rgb */ color: rgb(52, 2, 40);
/* oklch */ color: oklch(22.2% 0.092 340.1);
Tailwind
colors: {
  custom: {
    50: '#6e4962',
    500: '#340228',
    950: '#000000',
  },
}
SCSS
$custom: #340228;
$custom-light: #6e4962;
$custom-dark: #000000;
JSON
{
  "hex": "#340228",
  "rgb": {
    "r": 52,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 314.4,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.22232,
    "c": 0.09164,
    "h": 340.1
  },
  "luminance": 0.00927
}

Semantic roles & 50–950 ramp

primary
#340228
secondary
#1A7830
accent
#FF5C29
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #340228

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

Preview Lab → · Contrast checker → · Palette generator →

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