#2C1789#2C1789

#2C1789 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.172 H 279.5°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2C1789
RGBrgb(44, 23, 137)
HSLhsl(251, 71%, 31%)
HSVhsv(251, 83%, 54%)
CMYKcmyk(67.9%, 83.2%, 0%, 46.3%)
CIE-LABlab(19.86, 42.95, -58.86)
CIE-LCHlch(19.86, 72.87, 306.12°)
OKLaboklab(32.85% 0.0286 -0.1699)
OKLCHoklch(32.85% 0.172 279.5)
XYZxyz(5.8590, 2.9539, 23.9235)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1789 #748917
analogous
#173B89 #2C1789 #651789
triadic
#2C1789 #892C17 #17892C
tetradic
#2C1789 #89173B #748917 #178965
square
#2C1789 #89173B #748917 #178965
split-complementary
#2C1789 #896517 #3B8917
monochromatic
#0A0520 #1B0E55 #2C1789 #3D20BD #5A3CDE

Accessibility & contrast

On white

13.20
#2C1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1789
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1789#FFFFFF#000000##FFFFFF
##2C17891.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1789;
/* rgb */ color: rgb(44, 23, 137);
/* oklch */ color: oklch(32.8% 0.172 279.5);
Tailwind
colors: {
  custom: {
    50: '#7459ad',
    500: '#2c1789',
    950: '#000000',
  },
}
SCSS
$custom: #2c1789;
$custom-light: #7459ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1789",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 251.053,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32847,
    "c": 0.17233,
    "h": 279.5
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#2C1789
secondary
#A6BD3F
accent
#EE3ACD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1789

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

Preview Lab → · Contrast checker → · Palette generator →

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