#2C122F#2C122F

#2C122F is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.5% C 0.064 H 323.4°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#2C122F
RGBrgb(44, 18, 47)
HSLhsl(294, 45%, 13%)
HSVhsv(294, 62%, 18%)
CMYKcmyk(6.4%, 61.7%, 0%, 81.6%)
CIE-LABlab(10.36, 18.86, -13.74)
CIE-LCHlch(10.36, 23.34, 323.93°)
OKLaboklab(23.51% 0.051 -0.0379)
OKLCHoklch(23.51% 0.064 323.4)
XYZxyz(1.7681, 1.1734, 2.8221)
Luminance0.0117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C122F #152F12
analogous
#1D122F #2C122F #2F1223
triadic
#2C122F #2F2C12 #122F2C
tetradic
#2C122F #2F1D12 #152F12 #12232F
square
#2C122F #2F1D12 #152F12 #12232F
split-complementary
#2C122F #232F12 #122F1D
monochromatic
#150816 #150816 #2C122F #55235B #7F3488

Accessibility & contrast

On white

17.01
#2C122F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2C122F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C122F
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C122F#FFFFFF#000000##FFFFFF
##2C122F1.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A30
Deuteranopia (green-blind)
#161D2E
Tritanopia (blue-blind)
#2D161E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2c122f;
/* rgb */ color: rgb(44, 18, 47);
/* oklch */ color: oklch(23.5% 0.064 323.4);
Tailwind
colors: {
  custom: {
    50: '#665167',
    500: '#2c122f',
    950: '#000000',
  },
}
SCSS
$custom: #2c122f;
$custom-light: #665167;
$custom-dark: #000000;
JSON
{
  "hex": "#2c122f",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 47
  },
  "hsl": {
    "h": 293.793,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23509,
    "c": 0.06355,
    "h": 323.4
  },
  "luminance": 0.01173
}

Semantic roles & 50–950 ramp

primary
#2C122F
secondary
#3B6736
accent
#D45361
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2C122F

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

Preview Lab → · Contrast checker → · Palette generator →

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