#330228#330228

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

Color values

HEX#330228
RGBrgb(51, 2, 40)
HSLhsl(313, 92%, 10%)
HSVhsv(313, 96%, 20%)
CMYKcmyk(0%, 96.1%, 21.6%, 80%)
CIE-LABlab(8.13, 28.50, -11.92)
CIE-LCHlch(8.13, 30.89, 337.31°)
OKLaboklab(22.02% 0.0851 -0.0323)
OKLCHoklch(22.02% 0.091 339.2)
XYZxyz(1.7700, 0.9006, 2.0877)
Luminance0.0090 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330228 #02330D
analogous
#250233 #330228 #330210
triadic
#330228 #283302 #022833
tetradic
#330228 #332502 #02330D #021033
square
#330228 #332502 #02330D #021033
split-complementary
#330228 #103302 #023325
monochromatic
#1D0117 #1D0117 #330228 #6E0456 #A90784

Accessibility & contrast

On white

17.80
#330228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330228
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330228#FFFFFF#000000##FFFFFF
##3302281.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041329
Deuteranopia (green-blind)
#161B27
Tritanopia (blue-blind)
#370414
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #330228;
/* rgb */ color: rgb(51, 2, 40);
/* oklch */ color: oklch(22.0% 0.091 339.2);
Tailwind
colors: {
  custom: {
    50: '#6d4962',
    500: '#330228',
    950: '#000000',
  },
}
SCSS
$custom: #330228;
$custom-light: #6d4962;
$custom-dark: #000000;
JSON
{
  "hex": "#330228",
  "rgb": {
    "r": 51,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 313.469,
    "s": 92.453,
    "l": 10.392
  },
  "oklch": {
    "l": 0.22023,
    "c": 0.09101,
    "h": 339.2
  },
  "luminance": 0.009
}

Semantic roles & 50–950 ramp

primary
#330228
secondary
#1A772F
accent
#FF5929
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #330228

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

Preview Lab → · Contrast checker → · Palette generator →

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