#2C0227#2C0227

#2C0227 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.5% C 0.086 H 333.6°. Best body text is #FFFFFF at 18.34:1 contrast (WCAG AA passes).

Color values

HEX#2C0227
RGBrgb(44, 2, 39)
HSLhsl(307, 91%, 9%)
HSVhsv(307, 95%, 17%)
CMYKcmyk(0%, 95.5%, 11.4%, 82.7%)
CIE-LABlab(6.55, 26.12, -13.74)
CIE-LCHlch(6.55, 29.52, 332.25°)
OKLaboklab(20.51% 0.077 -0.0382)
OKLCHoklch(20.51% 0.086 333.6)
XYZxyz(1.4266, 0.7255, 1.9840)
Luminance0.0073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0227 #022C07
analogous
#1C022C #2C0227 #2C0212
triadic
#2C0227 #272C02 #02272C
tetradic
#2C0227 #2C1C02 #022C07 #02122C
square
#2C0227 #2C1C02 #022C07 #02122C
split-complementary
#2C0227 #122C02 #022C1C
monochromatic
#1D011A #1D011A #2C0227 #67055B #A1078F

Accessibility & contrast

On white

18.34
#2C0227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0227
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0227#FFFFFF#000000##FFFFFF
##2C02271.0018.341.1518.34
#FFFFFF18.341.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011028
Deuteranopia (green-blind)
#101726
Tritanopia (blue-blind)
#2F0513
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2c0227;
/* rgb */ color: rgb(44, 2, 39);
/* oklch */ color: oklch(20.5% 0.086 333.6);
Tailwind
colors: {
  custom: {
    50: '#674761',
    500: '#2c0227',
    950: '#000000',
  },
}
SCSS
$custom: #2c0227;
$custom-light: #674761;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0227",
  "rgb": {
    "r": 44,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 307.143,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.20509,
    "c": 0.08595,
    "h": 333.6
  },
  "luminance": 0.00725
}

Semantic roles & 50–950 ramp

primary
#2C0227
secondary
#197123
accent
#FF4229
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#060005
muted
#7A7779

Preview Lab

Preview with #2C0227

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

Preview Lab → · Contrast checker → · Palette generator →

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