#2C0126#2C0126

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

Color values

HEX#2C0126
RGBrgb(44, 1, 38)
HSLhsl(308, 96%, 9%)
HSVhsv(308, 98%, 17%)
CMYKcmyk(0%, 97.7%, 13.6%, 82.7%)
CIE-LABlab(6.30, 26.43, -13.38)
CIE-LCHlch(6.30, 29.62, 333.16°)
OKLaboklab(20.28% 0.0789 -0.0374)
OKLCHoklch(20.28% 0.087 334.7)
XYZxyz(1.3994, 0.6973, 1.8942)
Luminance0.0070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0126 #012C07
analogous
#1D012C #2C0126 #2C0111
triadic
#2C0126 #262C01 #01262C
tetradic
#2C0126 #2C1D01 #012C07 #01112C
square
#2C0126 #2C1D01 #012C07 #01112C
split-complementary
#2C0126 #112C01 #012C1D
monochromatic
#1E011A #1E011A #2C0126 #68025A #A4048D

Accessibility & contrast

On white

18.43
#2C0126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0126
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0126#FFFFFF#000000##FFFFFF
##2C01261.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011027
Deuteranopia (green-blind)
#101625
Tritanopia (blue-blind)
#2F0412
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2c0126;
/* rgb */ color: rgb(44, 1, 38);
/* oklch */ color: oklch(20.3% 0.087 334.7);
Tailwind
colors: {
  custom: {
    50: '#674760',
    500: '#2c0126',
    950: '#000000',
  },
}
SCSS
$custom: #2c0126;
$custom-light: #674760;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0126",
  "rgb": {
    "r": 44,
    "g": 1,
    "b": 38
  },
  "hsl": {
    "h": 308.372,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.20277,
    "c": 0.08733,
    "h": 334.7
  },
  "luminance": 0.00697
}

Semantic roles & 50–950 ramp

primary
#2C0126
secondary
#177223
accent
#FF4729
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#060005
muted
#7A7779

Preview Lab

Preview with #2C0126

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

Preview Lab → · Contrast checker → · Palette generator →

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