#2C1778#2C1778

#2C1778 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.152 H 282.9°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#2C1778
RGBrgb(44, 23, 120)
HSLhsl(253, 68%, 28%)
HSVhsv(253, 81%, 47%)
CMYKcmyk(63.3%, 80.8%, 0%, 52.9%)
CIE-LABlab(17.94, 37.69, -51.25)
CIE-LCHlch(17.94, 63.62, 306.33°)
OKLaboklab(30.94% 0.034 -0.1478)
OKLCHoklch(30.94% 0.152 282.9)
XYZxyz(4.7342, 2.5040, 17.9995)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1778 #637817
analogous
#173278 #2C1778 #5C1778
triadic
#2C1778 #782C17 #17782C
tetradic
#2C1778 #781732 #637817 #17785C
square
#2C1778 #781732 #637817 #17785C
split-complementary
#2C1778 #785C17 #327817
monochromatic
#09051A #190D45 #2C1778 #3F21AB #5632D8

Accessibility & contrast

On white

13.99
#2C1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2C1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1778
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1778#FFFFFF#000000##FFFFFF
##2C17781.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.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: #2c1778;
/* rgb */ color: rgb(44, 23, 120);
/* oklch */ color: oklch(30.9% 0.152 282.9);
Tailwind
colors: {
  custom: {
    50: '#7057a0',
    500: '#2c1778',
    950: '#000000',
  },
}
SCSS
$custom: #2c1778;
$custom-light: #7057a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1778",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 252.99,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30943,
    "c": 0.15164,
    "h": 282.9
  },
  "luminance": 0.02504
}

Semantic roles & 50–950 ramp

primary
#2C1778
secondary
#95AD3E
accent
#EB3DC5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2C1778

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

Preview Lab → · Contrast checker → · Palette generator →

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