#2C1879#2C1879

#2C1879 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.152 H 282.5°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#2C1879
RGBrgb(44, 24, 121)
HSLhsl(252, 67%, 28%)
HSVhsv(252, 80%, 47%)
CMYKcmyk(63.6%, 80.2%, 0%, 52.5%)
CIE-LABlab(18.23, 37.48, -51.41)
CIE-LCHlch(18.23, 63.63, 306.09°)
OKLaboklab(31.18% 0.033 -0.1483)
OKLCHoklch(31.18% 0.152 282.5)
XYZxyz(4.8155, 2.5689, 18.3275)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1879 #657918
analogous
#183479 #2C1879 #5C1879
triadic
#2C1879 #792C18 #18792C
tetradic
#2C1879 #791834 #657918 #18795C
square
#2C1879 #791834 #657918 #18795C
split-complementary
#2C1879 #795C18 #347918
monochromatic
#09051A #190E46 #2C1879 #3F22AC #5635D7

Accessibility & contrast

On white

13.87
#2C1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2C1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1879
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1879#FFFFFF#000000##FFFFFF
##2C18791.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1879;
/* rgb */ color: rgb(44, 24, 121);
/* oklch */ color: oklch(31.2% 0.152 282.5);
Tailwind
colors: {
  custom: {
    50: '#7058a1',
    500: '#2c1879',
    950: '#000000',
  },
}
SCSS
$custom: #2c1879;
$custom-light: #7058a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1879",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 252.371,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31179,
    "c": 0.1519,
    "h": 282.5
  },
  "luminance": 0.02569
}

Semantic roles & 50–950 ramp

primary
#2C1879
secondary
#97AE3F
accent
#EA3EC6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2C1879

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

Preview Lab → · Contrast checker → · Palette generator →

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