#2C1272#2C1272

#2C1272 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.149 H 285.2°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#2C1272
RGBrgb(44, 18, 114)
HSLhsl(256, 73%, 26%)
HSVhsv(256, 84%, 45%)
CMYKcmyk(61.4%, 84.2%, 0%, 55.3%)
CIE-LABlab(16.42, 38.31, -49.89)
CIE-LCHlch(16.42, 62.90, 307.52°)
OKLaboklab(29.69% 0.0392 -0.1438)
OKLCHoklch(29.69% 0.149 285.2)
XYZxyz(4.2914, 2.1827, 16.1115)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1272 #587212
analogous
#122872 #2C1272 #5C1272
triadic
#2C1272 #722C12 #12722C
tetradic
#2C1272 #721228 #587212 #12725C
square
#2C1272 #721228 #587212 #12725C
split-complementary
#2C1272 #725C12 #287212
monochromatic
#0A041A #180A3D #2C1272 #401AA7 #5523DC

Accessibility & contrast

On white

14.62
#2C1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2C1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1272
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1272#FFFFFF#000000##FFFFFF
##2C12721.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#042F43
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1272;
/* rgb */ color: rgb(44, 18, 114);
/* oklch */ color: oklch(29.7% 0.149 285.2);
Tailwind
colors: {
  custom: {
    50: '#6f549c',
    500: '#2c1272',
    950: '#000000',
  },
}
SCSS
$custom: #2c1272;
$custom-light: #6f549c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1272",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 256.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29689,
    "c": 0.14901,
    "h": 285.2
  },
  "luminance": 0.02183
}

Semantic roles & 50–950 ramp

primary
#2C1272
secondary
#8AA937
accent
#EF38BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1272

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

Preview Lab → · Contrast checker → · Palette generator →

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