#2C1681#2C1681

#2C1681 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.164 H 281.2°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#2C1681
RGBrgb(44, 22, 129)
HSLhsl(252, 71%, 30%)
HSVhsv(252, 83%, 51%)
CMYKcmyk(65.9%, 82.9%, 0%, 49.4%)
CIE-LABlab(18.77, 40.98, -55.61)
CIE-LCHlch(18.77, 69.08, 306.38°)
OKLaboklab(31.83% 0.0317 -0.1605)
OKLCHoklch(31.83% 0.164 281.2)
XYZxyz(5.2868, 2.6939, 21.0060)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1681 #6B8116
analogous
#163681 #2C1681 #611681
triadic
#2C1681 #812C16 #16812C
tetradic
#2C1681 #811636 #6B8116 #168161
square
#2C1681 #811636 #6B8116 #168161
split-complementary
#2C1681 #816116 #368116
monochromatic
#09041A #1A0D4D #2C1681 #3E1FB5 #5735DD

Accessibility & contrast

On white

13.65
#2C1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2C1681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1681
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1681#FFFFFF#000000##FFFFFF
##2C16811.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c1681;
/* rgb */ color: rgb(44, 22, 129);
/* oklch */ color: oklch(31.8% 0.164 281.2);
Tailwind
colors: {
  custom: {
    50: '#7257a7',
    500: '#2c1681',
    950: '#000000',
  },
}
SCSS
$custom: #2c1681;
$custom-light: #7257a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1681",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 252.336,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31825,
    "c": 0.16358,
    "h": 281.2
  },
  "luminance": 0.02694
}

Semantic roles & 50–950 ramp

primary
#2C1681
secondary
#9DB63D
accent
#EE3AC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1681

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

Preview Lab → · Contrast checker → · Palette generator →

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