#2C1878#2C1878

#2C1878 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.151 H 282.8°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#2C1878
RGBrgb(44, 24, 120)
HSLhsl(253, 67%, 28%)
HSVhsv(253, 80%, 47%)
CMYKcmyk(63.3%, 80%, 0%, 52.9%)
CIE-LABlab(18.12, 37.17, -50.95)
CIE-LCHlch(18.12, 63.07, 306.11°)
OKLaboklab(31.07% 0.0333 -0.1469)
OKLCHoklch(31.07% 0.151 282.8)
XYZxyz(4.7545, 2.5445, 18.0063)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1878 #647818
analogous
#183478 #2C1878 #5C1878
triadic
#2C1878 #782C18 #18782C
tetradic
#2C1878 #781834 #647818 #18785C
square
#2C1878 #781834 #647818 #18785C
split-complementary
#2C1878 #785C18 #347818
monochromatic
#09051A #190E45 #2C1878 #3F22AB #5634D6

Accessibility & contrast

On white

13.92
#2C1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1878
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1878#FFFFFF#000000##FFFFFF
##2C18781.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1878;
/* rgb */ color: rgb(44, 24, 120);
/* oklch */ color: oklch(31.1% 0.151 282.8);
Tailwind
colors: {
  custom: {
    50: '#7058a0',
    500: '#2c1878',
    950: '#000000',
  },
}
SCSS
$custom: #2c1878;
$custom-light: #7058a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1878",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 252.5,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3107,
    "c": 0.15065,
    "h": 282.8
  },
  "luminance": 0.02545
}

Semantic roles & 50–950 ramp

primary
#2C1878
secondary
#96AD3F
accent
#EA3EC6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2C1878

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

Preview Lab → · Contrast checker → · Palette generator →

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