#2C1680#2C1680

#2C1680 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.162 H 281.4°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#2C1680
RGBrgb(44, 22, 128)
HSLhsl(252, 71%, 29%)
HSVhsv(252, 83%, 50%)
CMYKcmyk(65.6%, 82.8%, 0%, 49.8%)
CIE-LABlab(18.66, 40.67, -55.16)
CIE-LCHlch(18.66, 68.54, 306.40°)
OKLaboklab(31.71% 0.032 -0.1592)
OKLCHoklch(31.71% 0.162 281.4)
XYZxyz(5.2207, 2.6674, 20.6576)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1680 #6A8016
analogous
#163580 #2C1680 #611680
triadic
#2C1680 #802C16 #16802C
tetradic
#2C1680 #801635 #6A8016 #168061
square
#2C1680 #801635 #6A8016 #168061
split-complementary
#2C1680 #806116 #358016
monochromatic
#09041A #1A0D4C #2C1680 #3E1FB4 #5734DC

Accessibility & contrast

On white

13.69
#2C1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2C1680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1680
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1680#FFFFFF#000000##FFFFFF
##2C16801.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1680;
/* rgb */ color: rgb(44, 22, 128);
/* oklch */ color: oklch(31.7% 0.162 281.4);
Tailwind
colors: {
  custom: {
    50: '#7257a6',
    500: '#2c1680',
    950: '#000000',
  },
}
SCSS
$custom: #2c1680;
$custom-light: #7257a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1680",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 252.453,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31712,
    "c": 0.16237,
    "h": 281.4
  },
  "luminance": 0.02668
}

Semantic roles & 50–950 ramp

primary
#2C1680
secondary
#9CB53D
accent
#ED3AC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C1680

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

Preview Lab → · Contrast checker → · Palette generator →

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