#2C1241#2C1241

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

Color values

HEX#2C1241
RGBrgb(44, 18, 65)
HSLhsl(273, 57%, 16%)
HSVhsv(273, 72%, 25%)
CMYKcmyk(32.3%, 72.3%, 0%, 74.5%)
CIE-LABlab(11.62, 23.64, -24.68)
CIE-LCHlch(11.62, 34.17, 313.76°)
OKLaboklab(24.83% 0.0518 -0.0698)
OKLCHoklch(24.83% 0.087 306.5)
XYZxyz(2.2089, 1.3498, 5.1442)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1241 #274112
analogous
#151241 #2C1241 #41123F
triadic
#2C1241 #412C12 #12412C
tetradic
#2C1241 #411512 #274112 #123F41
square
#2C1241 #411512 #274112 #123F41
split-complementary
#2C1241 #3F4112 #124115
monochromatic
#100718 #100718 #2C1241 #4C1F71 #6D2DA1

Accessibility & contrast

On white

16.54
#2C1241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1241
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1241#FFFFFF#000000##FFFFFF
##2C12411.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#081F40
Tritanopia (blue-blind)
#291C27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c1241;
/* rgb */ color: rgb(44, 18, 65);
/* oklch */ color: oklch(24.8% 0.087 306.5);
Tailwind
colors: {
  custom: {
    50: '#675176',
    500: '#2c1241',
    950: '#000000',
  },
}
SCSS
$custom: #2c1241;
$custom-light: #675176;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1241",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 273.191,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24835,
    "c": 0.08693,
    "h": 306.5
  },
  "luminance": 0.0135
}

Semantic roles & 50–950 ramp

primary
#2C1241
secondary
#547A35
accent
#E0488C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2C1241

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

Preview Lab → · Contrast checker → · Palette generator →

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