#2C1A76#2C1A76

#2C1A76 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.146 H 282.8°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2C1A76
RGBrgb(44, 26, 118)
HSLhsl(252, 64%, 28%)
HSVhsv(252, 78%, 46%)
CMYKcmyk(62.7%, 78%, 0%, 53.7%)
CIE-LABlab(18.29, 35.44, -49.40)
CIE-LCHlch(18.29, 60.80, 305.66°)
OKLaboklab(31.12% 0.0324 -0.1424)
OKLCHoklch(31.12% 0.146 282.8)
XYZxyz(4.6771, 2.5819, 17.3879)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A76 #64761A
analogous
#1A3676 #2C1A76 #5A1A76
triadic
#2C1A76 #762C1A #1A762C
tetradic
#2C1A76 #761A36 #64761A #1A765A
square
#2C1A76 #761A36 #64761A #1A765A
split-complementary
#2C1A76 #765A1A #36761A
monochromatic
#090619 #190F44 #2C1A76 #3F25A8 #5637D3

Accessibility & contrast

On white

13.85
#2C1A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C1A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A76
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A76#FFFFFF#000000##FFFFFF
##2C1A761.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1a76;
/* rgb */ color: rgb(44, 26, 118);
/* oklch */ color: oklch(31.1% 0.146 282.8);
Tailwind
colors: {
  custom: {
    50: '#6f599e',
    500: '#2c1a76',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a76;
$custom-light: #6f599e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a76",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 251.739,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31123,
    "c": 0.14604,
    "h": 282.8
  },
  "luminance": 0.02582
}

Semantic roles & 50–950 ramp

primary
#2C1A76
secondary
#96AB41
accent
#E741C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C1A76

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

Preview Lab → · Contrast checker → · Palette generator →

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