#2C1481#2C1481

#2C1481 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.165 H 281.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#2C1481
RGBrgb(44, 20, 129)
HSLhsl(253, 73%, 29%)
HSVhsv(253, 84%, 51%)
CMYKcmyk(65.9%, 84.5%, 0%, 49.4%)
CIE-LABlab(18.45, 41.91, -56.14)
CIE-LCHlch(18.45, 70.06, 306.74°)
OKLaboklab(31.6% 0.0328 -0.162)
OKLCHoklch(31.6% 0.165 281.4)
XYZxyz(5.2501, 2.6204, 20.9937)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1481 #698114
analogous
#143381 #2C1481 #631481
triadic
#2C1481 #812C14 #14812C
tetradic
#2C1481 #811433 #698114 #148163
square
#2C1481 #811433 #698114 #148163
split-complementary
#2C1481 #816314 #338114
monochromatic
#09041A #1A0C4C #2C1481 #3E1CB6 #5730DF

Accessibility & contrast

On white

13.78
#2C1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C1481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1481
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1481#FFFFFF#000000##FFFFFF
##2C14811.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1481;
/* rgb */ color: rgb(44, 20, 129);
/* oklch */ color: oklch(31.6% 0.165 281.4);
Tailwind
colors: {
  custom: {
    50: '#7256a7',
    500: '#2c1481',
    950: '#000000',
  },
}
SCSS
$custom: #2c1481;
$custom-light: #7256a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1481",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 253.211,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31604,
    "c": 0.16527,
    "h": 281.4
  },
  "luminance": 0.02621
}

Semantic roles & 50–950 ramp

primary
#2C1481
secondary
#9BB63B
accent
#F038C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1481

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

Preview Lab → · Contrast checker → · Palette generator →

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