#2C1048#2C1048

#2C1048 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.099 H 302.7°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#2C1048
RGBrgb(44, 16, 72)
HSLhsl(270, 64%, 17%)
HSVhsv(270, 78%, 28%)
CMYKcmyk(38.9%, 77.8%, 0%, 71.8%)
CIE-LABlab(11.78, 26.80, -29.33)
CIE-LCHlch(11.78, 39.73, 312.42°)
OKLaboklab(25.14% 0.0535 -0.0835)
OKLCHoklch(25.14% 0.099 302.7)
XYZxyz(2.3934, 1.3739, 6.2687)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1048 #2C4810
analogous
#101048 #2C1048 #481048
triadic
#2C1048 #482C10 #10482C
tetradic
#2C1048 #481010 #2C4810 #104848
square
#2C1048 #481010 #2C4810 #104848
split-complementary
#2C1048 #484810 #104810
monochromatic
#0F0619 #0F0619 #2C1048 #4B1B7A #6926AC

Accessibility & contrast

On white

16.47
#2C1048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1048
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1048#FFFFFF#000000##FFFFFF
##2C10481.0016.471.2716.47
#FFFFFF16.471.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#001F47
Tritanopia (blue-blind)
#261D2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c1048;
/* rgb */ color: rgb(44, 16, 72);
/* oklch */ color: oklch(25.1% 0.099 302.7);
Tailwind
colors: {
  custom: {
    50: '#68517b',
    500: '#2c1048',
    950: '#000000',
  },
}
SCSS
$custom: #2c1048;
$custom-light: #68517b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1048",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 72
  },
  "hsl": {
    "h": 270,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25137,
    "c": 0.09914,
    "h": 302.7
  },
  "luminance": 0.01374
}

Semantic roles & 50–950 ramp

primary
#2C1048
secondary
#5A8232
accent
#E74194
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1048

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

Preview Lab → · Contrast checker → · Palette generator →

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