#2C1480#2C1480

#2C1480 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.164 H 281.6°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#2C1480
RGBrgb(44, 20, 128)
HSLhsl(253, 73%, 29%)
HSVhsv(253, 84%, 50%)
CMYKcmyk(65.6%, 84.4%, 0%, 49.8%)
CIE-LABlab(18.34, 41.61, -55.70)
CIE-LCHlch(18.34, 69.52, 306.76°)
OKLaboklab(31.49% 0.0331 -0.1607)
OKLCHoklch(31.49% 0.164 281.6)
XYZxyz(5.1839, 2.5939, 20.6454)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1480 #688014
analogous
#143280 #2C1480 #621480
triadic
#2C1480 #802C14 #14802C
tetradic
#2C1480 #801432 #688014 #148062
square
#2C1480 #801432 #688014 #148062
split-complementary
#2C1480 #806214 #328014
monochromatic
#09041A #1A0C4B #2C1480 #3E1CB5 #5730DF

Accessibility & contrast

On white

13.83
#2C1480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1480
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1480#FFFFFF#000000##FFFFFF
##2C14801.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1480;
/* rgb */ color: rgb(44, 20, 128);
/* oklch */ color: oklch(31.5% 0.164 281.6);
Tailwind
colors: {
  custom: {
    50: '#7256a6',
    500: '#2c1480',
    950: '#000000',
  },
}
SCSS
$custom: #2c1480;
$custom-light: #7256a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1480",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 253.333,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3149,
    "c": 0.16407,
    "h": 281.6
  },
  "luminance": 0.02594
}

Semantic roles & 50–950 ramp

primary
#2C1480
secondary
#9AB53B
accent
#F038C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C1480

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

Preview Lab → · Contrast checker → · Palette generator →

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