#2C1978#2C1978

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

Color values

HEX#2C1978
RGBrgb(44, 25, 120)
HSLhsl(252, 66%, 28%)
HSVhsv(252, 79%, 47%)
CMYKcmyk(63.3%, 79.2%, 0%, 52.9%)
CIE-LABlab(18.31, 36.63, -50.65)
CIE-LCHlch(18.31, 62.50, 305.88°)
OKLaboklab(31.2% 0.0326 -0.146)
OKLCHoklch(31.2% 0.15 282.6)
XYZxyz(4.7754, 2.5865, 18.0133)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1978 #657819
analogous
#193578 #2C1978 #5B1978
triadic
#2C1978 #782C19 #19782C
tetradic
#2C1978 #781935 #657819 #19785B
square
#2C1978 #781935 #657819 #19785B
split-complementary
#2C1978 #785B19 #357819
monochromatic
#090519 #190E45 #2C1978 #3F24AB #5636D5

Accessibility & contrast

On white

13.84
#2C1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1978
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1978#FFFFFF#000000##FFFFFF
##2C19781.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1978;
/* rgb */ color: rgb(44, 25, 120);
/* oklch */ color: oklch(31.2% 0.150 282.6);
Tailwind
colors: {
  custom: {
    50: '#7058a0',
    500: '#2c1978',
    950: '#000000',
  },
}
SCSS
$custom: #2c1978;
$custom-light: #7058a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1978",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 252,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31201,
    "c": 0.14963,
    "h": 282.6
  },
  "luminance": 0.02587
}

Semantic roles & 50–950 ramp

primary
#2C1978
secondary
#97AD40
accent
#E83FC7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2C1978

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

Preview Lab → · Contrast checker → · Palette generator →

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