#2C1242#2C1242

#2C1242 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.088 H 305.8°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#2C1242
RGBrgb(44, 18, 66)
HSLhsl(273, 57%, 16%)
HSVhsv(273, 73%, 26%)
CMYKcmyk(33.3%, 72.7%, 0%, 74.1%)
CIE-LABlab(11.70, 23.92, -25.26)
CIE-LCHlch(11.70, 34.79, 313.44°)
OKLaboklab(24.92% 0.0517 -0.0715)
OKLCHoklch(24.92% 0.088 305.8)
XYZxyz(2.2382, 1.3615, 5.2981)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1242 #284212
analogous
#141242 #2C1242 #421240
triadic
#2C1242 #422C12 #12422C
tetradic
#2C1242 #421412 #284212 #124042
square
#2C1242 #421412 #284212 #124042
split-complementary
#2C1242 #404212 #124214
monochromatic
#100718 #100718 #2C1242 #4C1F72 #6C2CA2

Accessibility & contrast

On white

16.51
#2C1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1242
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1242#FFFFFF#000000##FFFFFF
##2C12421.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#071F41
Tritanopia (blue-blind)
#281C28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c1242;
/* rgb */ color: rgb(44, 18, 66);
/* oklch */ color: oklch(24.9% 0.088 305.8);
Tailwind
colors: {
  custom: {
    50: '#675277',
    500: '#2c1242',
    950: '#000000',
  },
}
SCSS
$custom: #2c1242;
$custom-light: #675277;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1242",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 272.5,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24917,
    "c": 0.08825,
    "h": 305.8
  },
  "luminance": 0.01361
}

Semantic roles & 50–950 ramp

primary
#2C1242
secondary
#557B35
accent
#E0478E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2C1242

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

Preview Lab → · Contrast checker → · Palette generator →

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