#2C0228#2C0228

#2C0228 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.6% C 0.087 H 332.5°. Best body text is #FFFFFF at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#2C0228
RGBrgb(44, 2, 40)
HSLhsl(306, 91%, 9%)
HSVhsv(306, 95%, 17%)
CMYKcmyk(0%, 95.5%, 9.1%, 82.7%)
CIE-LABlab(6.61, 26.34, -14.41)
CIE-LCHlch(6.61, 30.03, 331.32°)
OKLaboklab(20.58% 0.077 -0.0401)
OKLCHoklch(20.58% 0.087 332.5)
XYZxyz(1.4434, 0.7322, 2.0724)
Luminance0.0073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0228 #022C06
analogous
#1B022C #2C0228 #2C0213
triadic
#2C0228 #282C02 #02282C
tetradic
#2C0228 #2C1B02 #022C06 #02132C
square
#2C0228 #2C1B02 #022C06 #02132C
split-complementary
#2C0228 #132C02 #022C1B
monochromatic
#1D011B #1D011B #2C0228 #67055D #A10792

Accessibility & contrast

On white

18.32
#2C0228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2C0228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0228
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0228#FFFFFF#000000##FFFFFF
##2C02281.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001129
Deuteranopia (green-blind)
#0F1727
Tritanopia (blue-blind)
#2E0614
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2c0228;
/* rgb */ color: rgb(44, 2, 40);
/* oklch */ color: oklch(20.6% 0.087 332.5);
Tailwind
colors: {
  custom: {
    50: '#674762',
    500: '#2c0228',
    950: '#000000',
  },
}
SCSS
$custom: #2c0228;
$custom-light: #674762;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0228",
  "rgb": {
    "r": 44,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 305.714,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.20581,
    "c": 0.08681,
    "h": 332.5
  },
  "luminance": 0.00732
}

Semantic roles & 50–950 ramp

primary
#2C0228
secondary
#197121
accent
#FF3D29
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#060005
muted
#7A7779

Preview Lab

Preview with #2C0228

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

Preview Lab → · Contrast checker → · Palette generator →

#2C0228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva