#2C1C78#2C1C78

#2C1C78 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.146 H 282.0°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#2C1C78
RGBrgb(44, 28, 120)
HSLhsl(250, 62%, 29%)
HSVhsv(250, 77%, 47%)
CMYKcmyk(63.3%, 76.7%, 0%, 52.9%)
CIE-LABlab(18.89, 34.97, -49.68)
CIE-LCHlch(18.89, 60.75, 305.14°)
OKLaboklab(31.62% 0.0304 -0.1432)
OKLCHoklch(31.62% 0.146 282)
XYZxyz(4.8431, 2.7217, 18.0358)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C78 #68781C
analogous
#1C3A78 #2C1C78 #5A1C78
triadic
#2C1C78 #782C1C #1C782C
tetradic
#2C1C78 #781C3A #68781C #1C785A
square
#2C1C78 #781C3A #68781C #1C785A
split-complementary
#2C1C78 #785A1C #3A781C
monochromatic
#090619 #1A1046 #2C1C78 #3E28AA #573DD2

Accessibility & contrast

On white

13.60
#2C1C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2C1C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1C78
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C78#FFFFFF#000000##FFFFFF
##2C1C781.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c1c78;
/* rgb */ color: rgb(44, 28, 120);
/* oklch */ color: oklch(31.6% 0.146 282.0);
Tailwind
colors: {
  custom: {
    50: '#705aa0',
    500: '#2c1c78',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c78;
$custom-light: #705aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c78",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 250.435,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31615,
    "c": 0.14643,
    "h": 282
  },
  "luminance": 0.02722
}

Semantic roles & 50–950 ramp

primary
#2C1C78
secondary
#9AAC44
accent
#E543C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2C1C78

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

Preview Lab → · Contrast checker → · Palette generator →

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