#2C1238#2C1238

#2C1238 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.1% C 0.075 H 313.8°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#2C1238
RGBrgb(44, 18, 56)
HSLhsl(281, 51%, 15%)
HSVhsv(281, 68%, 22%)
CMYKcmyk(21.4%, 67.9%, 0%, 78%)
CIE-LABlab(10.95, 21.16, -19.35)
CIE-LCHlch(10.95, 28.67, 317.56°)
OKLaboklab(24.13% 0.0519 -0.0542)
OKLCHoklch(24.13% 0.075 313.8)
XYZxyz(1.9687, 1.2537, 3.8789)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1238 #1E3812
analogous
#191238 #2C1238 #381231
triadic
#2C1238 #382C12 #12382C
tetradic
#2C1238 #381912 #1E3812 #123138
square
#2C1238 #381912 #1E3812 #123138
split-complementary
#2C1238 #313812 #123819
monochromatic
#120717 #120717 #2C1238 #502166 #753095

Accessibility & contrast

On white

16.79
#2C1238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2C1238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1238
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1238#FFFFFF#000000##FFFFFF
##2C12381.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071C39
Deuteranopia (green-blind)
#111E37
Tritanopia (blue-blind)
#2B1922
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2c1238;
/* rgb */ color: rgb(44, 18, 56);
/* oklch */ color: oklch(24.1% 0.075 313.8);
Tailwind
colors: {
  custom: {
    50: '#66516f',
    500: '#2c1238',
    950: '#000000',
  },
}
SCSS
$custom: #2c1238;
$custom-light: #66516f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1238",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 281.053,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24131,
    "c": 0.07507,
    "h": 313.8
  },
  "luminance": 0.01254
}

Semantic roles & 50–950 ramp

primary
#2C1238
secondary
#487135
accent
#DB4D7A
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2C1238

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

Preview Lab → · Contrast checker → · Palette generator →

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