#2C1676#2C1676

#2C1676 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.150 H 283.6°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#2C1676
RGBrgb(44, 22, 118)
HSLhsl(254, 69%, 27%)
HSVhsv(254, 81%, 46%)
CMYKcmyk(62.7%, 81.4%, 0%, 53.7%)
CIE-LABlab(17.54, 37.58, -50.62)
CIE-LCHlch(17.54, 63.05, 306.58°)
OKLaboklab(30.6% 0.0352 -0.1459)
OKLCHoklch(30.6% 0.15 283.6)
XYZxyz(4.5946, 2.4170, 17.3604)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1676 #607616
analogous
#163076 #2C1676 #5C1676
triadic
#2C1676 #762C16 #16762C
tetradic
#2C1676 #761630 #607616 #16765C
square
#2C1676 #761630 #607616 #16765C
split-complementary
#2C1676 #765C16 #307616
monochromatic
#0A051A #190C42 #2C1676 #3F20AA #552ED8

Accessibility & contrast

On white

14.16
#2C1676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2C1676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1676
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1676#FFFFFF#000000##FFFFFF
##2C16761.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1676;
/* rgb */ color: rgb(44, 22, 118);
/* oklch */ color: oklch(30.6% 0.150 283.6);
Tailwind
colors: {
  custom: {
    50: '#70579f',
    500: '#2c1676',
    950: '#000000',
  },
}
SCSS
$custom: #2c1676;
$custom-light: #70579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1676",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 253.75,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.306,
    "c": 0.15014,
    "h": 283.6
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#2C1676
secondary
#92AC3C
accent
#EB3CC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2C1676

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

Preview Lab → · Contrast checker → · Palette generator →

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