#2C0128#2C0128

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

Color values

HEX#2C0128
RGBrgb(44, 1, 40)
HSLhsl(306, 96%, 9%)
HSVhsv(306, 98%, 17%)
CMYKcmyk(0%, 97.7%, 9.1%, 82.7%)
CIE-LABlab(6.42, 26.88, -14.72)
CIE-LCHlch(6.42, 30.65, 331.30°)
OKLaboklab(20.42% 0.0789 -0.0411)
OKLCHoklch(20.42% 0.089 332.5)
XYZxyz(1.4326, 0.7105, 2.0688)
Luminance0.0071 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0128 #012C05
analogous
#1B012C #2C0128 #2C0113
triadic
#2C0128 #282C01 #01282C
tetradic
#2C0128 #2C1B01 #012C05 #01132C
square
#2C0128 #2C1B01 #012C05 #01132C
split-complementary
#2C0128 #132C01 #012C1B
monochromatic
#1E011B #1E011B #2C0128 #68025E #A40495

Accessibility & contrast

On white

18.39
#2C0128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#2C0128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0128
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0128#FFFFFF#000000##FFFFFF
##2C01281.0018.391.1418.39
#FFFFFF18.391.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001029
Deuteranopia (green-blind)
#0F1627
Tritanopia (blue-blind)
#2E0514
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2c0128;
/* rgb */ color: rgb(44, 1, 40);
/* oklch */ color: oklch(20.4% 0.089 332.5);
Tailwind
colors: {
  custom: {
    50: '#674762',
    500: '#2c0128',
    950: '#000000',
  },
}
SCSS
$custom: #2c0128;
$custom-light: #674762;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0128",
  "rgb": {
    "r": 44,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 305.581,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.20421,
    "c": 0.08899,
    "h": 332.5
  },
  "luminance": 0.0071
}

Semantic roles & 50–950 ramp

primary
#2C0128
secondary
#17721F
accent
#FF3D29
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#060005
muted
#7A7779

Preview Lab

Preview with #2C0128

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

Preview Lab → · Contrast checker → · Palette generator →

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