#2C1772#2C1772

#2C1772 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.144 H 284.4°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#2C1772
RGBrgb(44, 23, 114)
HSLhsl(254, 66%, 27%)
HSVhsv(254, 80%, 45%)
CMYKcmyk(61.4%, 79.8%, 0%, 55.3%)
CIE-LABlab(17.29, 35.80, -48.46)
CIE-LCHlch(17.29, 60.25, 306.46°)
OKLaboklab(30.29% 0.0358 -0.1396)
OKLCHoklch(30.29% 0.144 284.4)
XYZxyz(4.3814, 2.3629, 16.1415)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1772 #5D7217
analogous
#173072 #2C1772 #5A1772
triadic
#2C1772 #722C17 #17722C
tetradic
#2C1772 #721730 #5D7217 #17725A
square
#2C1772 #721730 #5D7217 #17725A
split-complementary
#2C1772 #725A17 #307217
monochromatic
#0A0519 #180D3F #2C1772 #4021A5 #552ED5

Accessibility & contrast

On white

14.26
#2C1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2C1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1772
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1772#FFFFFF#000000##FFFFFF
##2C17721.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#033144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1772;
/* rgb */ color: rgb(44, 23, 114);
/* oklch */ color: oklch(30.3% 0.144 284.4);
Tailwind
colors: {
  custom: {
    50: '#6f579c',
    500: '#2c1772',
    950: '#000000',
  },
}
SCSS
$custom: #2c1772;
$custom-light: #6f579c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1772",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 253.846,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30294,
    "c": 0.14414,
    "h": 284.4
  },
  "luminance": 0.02363
}

Semantic roles & 50–950 ramp

primary
#2C1772
secondary
#8FA83D
accent
#E93EC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1772

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

Preview Lab → · Contrast checker → · Palette generator →

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