#2C1671#2C1671

#2C1671 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.144 H 284.8°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#2C1671
RGBrgb(44, 22, 113)
HSLhsl(255, 67%, 26%)
HSVhsv(255, 81%, 44%)
CMYKcmyk(61.1%, 80.5%, 0%, 55.7%)
CIE-LABlab(17.00, 36.01, -48.29)
CIE-LCHlch(17.00, 60.24, 306.71°)
OKLaboklab(30.06% 0.0368 -0.1391)
OKLCHoklch(30.06% 0.144 284.8)
XYZxyz(4.3053, 2.3013, 15.8369)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1671 #5B7116
analogous
#162E71 #2C1671 #5A1671
triadic
#2C1671 #712C16 #16712C
tetradic
#2C1671 #71162E #5B7116 #16715A
square
#2C1671 #71162E #5B7116 #16715A
split-complementary
#2C1671 #715A16 #2E7116
monochromatic
#0A051A #180C3E #2C1671 #4020A4 #552CD6

Accessibility & contrast

On white

14.38
#2C1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2C1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1671
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1671#FFFFFF#000000##FFFFFF
##2C16711.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#053043
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1671;
/* rgb */ color: rgb(44, 22, 113);
/* oklch */ color: oklch(30.1% 0.144 284.8);
Tailwind
colors: {
  custom: {
    50: '#6f569b',
    500: '#2c1671',
    950: '#000000',
  },
}
SCSS
$custom: #2c1671;
$custom-light: #6f569b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1671",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 254.505,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30057,
    "c": 0.14392,
    "h": 284.8
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#2C1671
secondary
#8DA73C
accent
#EA3EC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1671

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

Preview Lab → · Contrast checker → · Palette generator →

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