#2C1678#2C1678

#2C1678 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.153 H 283.1°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#2C1678
RGBrgb(44, 22, 120)
HSLhsl(253, 69%, 28%)
HSVhsv(253, 82%, 47%)
CMYKcmyk(63.3%, 81.7%, 0%, 52.9%)
CIE-LABlab(17.76, 38.20, -51.55)
CIE-LCHlch(17.76, 64.16, 306.54°)
OKLaboklab(30.82% 0.0346 -0.1486)
OKLCHoklch(30.82% 0.153 283.1)
XYZxyz(4.7147, 2.4650, 17.9930)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1678 #627816
analogous
#163178 #2C1678 #5D1678
triadic
#2C1678 #782C16 #16782C
tetradic
#2C1678 #781631 #627816 #16785D
square
#2C1678 #781631 #627816 #16785D
split-complementary
#2C1678 #785D16 #317816
monochromatic
#09051A #190D44 #2C1678 #3F1FAC #552FD9

Accessibility & contrast

On white

14.07
#2C1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C1678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1678
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1678#FFFFFF#000000##FFFFFF
##2C16781.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1678;
/* rgb */ color: rgb(44, 22, 120);
/* oklch */ color: oklch(30.8% 0.153 283.1);
Tailwind
colors: {
  custom: {
    50: '#7057a0',
    500: '#2c1678',
    950: '#000000',
  },
}
SCSS
$custom: #2c1678;
$custom-light: #7057a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1678",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 253.469,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3082,
    "c": 0.15261,
    "h": 283.1
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#2C1678
secondary
#94AD3C
accent
#EC3CC4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2C1678

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

Preview Lab → · Contrast checker → · Palette generator →

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