#2C1489#2C1489

#2C1489 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.5% C 0.175 H 279.9°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2C1489
RGBrgb(44, 20, 137)
HSLhsl(252, 75%, 31%)
HSVhsv(252, 85%, 54%)
CMYKcmyk(67.9%, 85.4%, 0%, 46.3%)
CIE-LABlab(19.40, 44.30, -59.62)
CIE-LCHlch(19.40, 74.28, 306.62°)
OKLaboklab(32.53% 0.03 -0.1721)
OKLCHoklch(32.53% 0.175 279.9)
XYZxyz(5.8028, 2.8415, 23.9047)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1489 #718914
analogous
#143689 #2C1489 #661489
triadic
#2C1489 #892C14 #14892C
tetradic
#2C1489 #891436 #718914 #148966
square
#2C1489 #891436 #718914 #148966
split-complementary
#2C1489 #896614 #368914
monochromatic
#0A041E #1B0C54 #2C1489 #3D1CBE #5936E2

Accessibility & contrast

On white

13.39
#2C1489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2C1489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1489
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1489#FFFFFF#000000##FFFFFF
##2C14891.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1489;
/* rgb */ color: rgb(44, 20, 137);
/* oklch */ color: oklch(32.5% 0.175 279.9);
Tailwind
colors: {
  custom: {
    50: '#7457ad',
    500: '#2c1489',
    950: '#000000',
  },
}
SCSS
$custom: #2c1489;
$custom-light: #7457ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1489",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 137
  },
  "hsl": {
    "h": 252.308,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32529,
    "c": 0.17471,
    "h": 279.9
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#2C1489
secondary
#A3BD3C
accent
#F137CB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1489

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

Preview Lab → · Contrast checker → · Palette generator →

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