#2C1548#2C1548

#2C1548 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.091 H 300.9°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#2C1548
RGBrgb(44, 21, 72)
HSLhsl(267, 55%, 18%)
HSVhsv(267, 71%, 28%)
CMYKcmyk(38.9%, 70.8%, 0%, 71.8%)
CIE-LABlab(12.86, 23.84, -27.59)
CIE-LCHlch(12.86, 36.46, 310.83°)
OKLaboklab(25.91% 0.047 -0.0784)
OKLCHoklch(25.91% 0.091 300.9)
XYZxyz(2.4763, 1.5397, 6.2964)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1548 #314815
analogous
#151748 #2C1548 #451548
triadic
#2C1548 #482C15 #15482C
tetradic
#2C1548 #481517 #314815 #154845
square
#2C1548 #481517 #314815 #154845
split-complementary
#2C1548 #484515 #174815
monochromatic
#0E0718 #0F0719 #2C1548 #492377 #6631A7

Accessibility & contrast

On white

16.06
#2C1548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2C1548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1548
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1548#FFFFFF#000000##FFFFFF
##2C15481.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#032147
Tritanopia (blue-blind)
#26202C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c1548;
/* rgb */ color: rgb(44, 21, 72);
/* oklch */ color: oklch(25.9% 0.091 300.9);
Tailwind
colors: {
  custom: {
    50: '#68547b',
    500: '#2c1548',
    950: '#000000',
  },
}
SCSS
$custom: #2c1548;
$custom-light: #68547b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1548",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 267.059,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25909,
    "c": 0.09138,
    "h": 300.9
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#2C1548
secondary
#608039
accent
#DE4A9B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1548

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

Preview Lab → · Contrast checker → · Palette generator →

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