#2C1A78#2C1A78

#2C1A78 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.149 H 282.4°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2C1A78
RGBrgb(44, 26, 120)
HSLhsl(251, 64%, 29%)
HSVhsv(251, 78%, 47%)
CMYKcmyk(63.3%, 78.3%, 0%, 52.9%)
CIE-LABlab(18.50, 36.09, -50.33)
CIE-LCHlch(18.50, 61.93, 305.64°)
OKLaboklab(31.34% 0.0319 -0.1451)
OKLCHoklch(31.34% 0.149 282.4)
XYZxyz(4.7972, 2.6300, 18.0205)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A78 #66781A
analogous
#1A3778 #2C1A78 #5B1A78
triadic
#2C1A78 #782C1A #1A782C
tetradic
#2C1A78 #781A37 #66781A #1A785B
square
#2C1A78 #781A37 #66781A #1A785B
split-complementary
#2C1A78 #785B1A #37781A
monochromatic
#090519 #1A0F46 #2C1A78 #3E25AA #5638D4

Accessibility & contrast

On white

13.76
#2C1A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2C1A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A78
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A78#FFFFFF#000000##FFFFFF
##2C1A781.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1a78;
/* rgb */ color: rgb(44, 26, 120);
/* oklch */ color: oklch(31.3% 0.149 282.4);
Tailwind
colors: {
  custom: {
    50: '#7059a0',
    500: '#2c1a78',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a78;
$custom-light: #7059a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a78",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 251.489,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31335,
    "c": 0.14859,
    "h": 282.4
  },
  "luminance": 0.0263
}

Semantic roles & 50–950 ramp

primary
#2C1A78
secondary
#98AC41
accent
#E740C7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C1A78

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

Preview Lab → · Contrast checker → · Palette generator →

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