#2C1788#2C1788

#2C1788 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.171 H 279.7°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#2C1788
RGBrgb(44, 23, 136)
HSLhsl(251, 71%, 31%)
HSVhsv(251, 83%, 53%)
CMYKcmyk(67.6%, 83.1%, 0%, 46.7%)
CIE-LABlab(19.74, 42.65, -58.42)
CIE-LCHlch(19.74, 72.33, 306.13°)
OKLaboklab(32.73% 0.0289 -0.1687)
OKLCHoklch(32.73% 0.171 279.7)
XYZxyz(5.7876, 2.9254, 23.5474)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1788 #738817
analogous
#173B88 #2C1788 #641788
triadic
#2C1788 #882C17 #17882C
tetradic
#2C1788 #88173B #738817 #178864
square
#2C1788 #88173B #738817 #178864
split-complementary
#2C1788 #886417 #3B8817
monochromatic
#0A051F #1B0E54 #2C1788 #3D20BC #5A3BDE

Accessibility & contrast

On white

13.25
#2C1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2C1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1788
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1788#FFFFFF#000000##FFFFFF
##2C17881.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002B86
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1788;
/* rgb */ color: rgb(44, 23, 136);
/* oklch */ color: oklch(32.7% 0.171 279.7);
Tailwind
colors: {
  custom: {
    50: '#7458ac',
    500: '#2c1788',
    950: '#000000',
  },
}
SCSS
$custom: #2c1788;
$custom-light: #7458ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1788",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 251.15,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32732,
    "c": 0.17113,
    "h": 279.7
  },
  "luminance": 0.02926
}

Semantic roles & 50–950 ramp

primary
#2C1788
secondary
#A5BC3F
accent
#EE3ACC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1788

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

Preview Lab → · Contrast checker → · Palette generator →

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