#2C1776#2C1776

#2C1776 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.149 H 283.4°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#2C1776
RGBrgb(44, 23, 118)
HSLhsl(253, 67%, 28%)
HSVhsv(253, 81%, 46%)
CMYKcmyk(62.7%, 80.5%, 0%, 53.7%)
CIE-LABlab(17.72, 37.06, -50.33)
CIE-LCHlch(17.72, 62.50, 306.37°)
OKLaboklab(30.73% 0.0346 -0.1451)
OKLCHoklch(30.73% 0.149 283.4)
XYZxyz(4.6141, 2.4560, 17.3669)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1776 #617617
analogous
#173276 #2C1776 #5B1776
triadic
#2C1776 #762C17 #17762C
tetradic
#2C1776 #761732 #617617 #17765B
square
#2C1776 #761732 #617617 #17765B
split-complementary
#2C1776 #765B17 #327617
monochromatic
#0A051A #190D43 #2C1776 #3F21A9 #5531D7

Accessibility & contrast

On white

14.08
#2C1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C1776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1776
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1776#FFFFFF#000000##FFFFFF
##2C17761.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1776;
/* rgb */ color: rgb(44, 23, 118);
/* oklch */ color: oklch(30.7% 0.149 283.4);
Tailwind
colors: {
  custom: {
    50: '#70579f',
    500: '#2c1776',
    950: '#000000',
  },
}
SCSS
$custom: #2c1776;
$custom-light: #70579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1776",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 253.263,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30725,
    "c": 0.14915,
    "h": 283.4
  },
  "luminance": 0.02456
}

Semantic roles & 50–950 ramp

primary
#2C1776
secondary
#93AB3E
accent
#EA3EC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2C1776

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

Preview Lab → · Contrast checker → · Palette generator →

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