#2C1142#2C1142

#2C1142 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.090 H 306.2°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#2C1142
RGBrgb(44, 17, 66)
HSLhsl(273, 59%, 16%)
HSVhsv(273, 74%, 26%)
CMYKcmyk(33.3%, 74.2%, 0%, 74.1%)
CIE-LABlab(11.48, 24.52, -25.61)
CIE-LCHlch(11.48, 35.45, 313.75°)
OKLaboklab(24.76% 0.0531 -0.0725)
OKLCHoklch(24.76% 0.09 306.2)
XYZxyz(2.2223, 1.3297, 5.2928)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1142 #274211
analogous
#141142 #2C1142 #421140
triadic
#2C1142 #422C11 #11422C
tetradic
#2C1142 #421411 #274211 #114042
square
#2C1142 #421411 #274211 #114042
split-complementary
#2C1142 #404211 #114214
monochromatic
#100618 #100618 #2C1142 #4C1E73 #6D2AA3

Accessibility & contrast

On white

16.59
#2C1142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2C1142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1142
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1142#FFFFFF#000000##FFFFFF
##2C11421.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#051F41
Tritanopia (blue-blind)
#281C27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2c1142;
/* rgb */ color: rgb(44, 17, 66);
/* oklch */ color: oklch(24.8% 0.090 306.2);
Tailwind
colors: {
  custom: {
    50: '#675177',
    500: '#2c1142',
    950: '#000000',
  },
}
SCSS
$custom: #2c1142;
$custom-light: #675177;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1142",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 273.061,
    "s": 59.036,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24761,
    "c": 0.08989,
    "h": 306.2
  },
  "luminance": 0.0133
}

Semantic roles & 50–950 ramp

primary
#2C1142
secondary
#547C33
accent
#E2468C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2C1142

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

Preview Lab → · Contrast checker → · Palette generator →

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