#2C1589#2C1589

#2C1589 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.174 H 279.8°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#2C1589
RGBrgb(44, 21, 137)
HSLhsl(252, 73%, 31%)
HSVhsv(252, 85%, 54%)
CMYKcmyk(67.9%, 84.7%, 0%, 46.3%)
CIE-LABlab(19.55, 43.87, -59.38)
CIE-LCHlch(19.55, 73.82, 306.46°)
OKLaboklab(32.63% 0.0295 -0.1714)
OKLCHoklch(32.63% 0.174 279.8)
XYZxyz(5.8208, 2.8775, 23.9107)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1589 #728915
analogous
#153889 #2C1589 #661589
triadic
#2C1589 #892C15 #15892C
tetradic
#2C1589 #891538 #728915 #158966
square
#2C1589 #891538 #728915 #158966
split-complementary
#2C1589 #896615 #388915
monochromatic
#0A051F #1B0D54 #2C1589 #3D1DBE #5938E0

Accessibility & contrast

On white

13.33
#2C1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2C1589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1589
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1589#FFFFFF#000000##FFFFFF
##2C15891.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1589;
/* rgb */ color: rgb(44, 21, 137);
/* oklch */ color: oklch(32.6% 0.174 279.8);
Tailwind
colors: {
  custom: {
    50: '#7458ad',
    500: '#2c1589',
    950: '#000000',
  },
}
SCSS
$custom: #2c1589;
$custom-light: #7458ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1589",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 251.897,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32631,
    "c": 0.17394,
    "h": 279.8
  },
  "luminance": 0.02878
}

Semantic roles & 50–950 ramp

primary
#2C1589
secondary
#A4BD3D
accent
#F038CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1589

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

Preview Lab → · Contrast checker → · Palette generator →

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