#2C1689#2C1689

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

Color values

HEX#2C1689
RGBrgb(44, 22, 137)
HSLhsl(251, 72%, 31%)
HSVhsv(251, 84%, 54%)
CMYKcmyk(67.9%, 83.9%, 0%, 46.3%)
CIE-LABlab(19.70, 43.41, -59.12)
CIE-LCHlch(19.70, 73.35, 306.29°)
OKLaboklab(32.74% 0.029 -0.1707)
OKLCHoklch(32.74% 0.173 279.7)
XYZxyz(5.8395, 2.9150, 23.9170)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1689 #738916
analogous
#163989 #2C1689 #651689
triadic
#2C1689 #892C16 #16892C
tetradic
#2C1689 #891639 #738916 #168965
square
#2C1689 #891639 #738916 #168965
split-complementary
#2C1689 #896516 #398916
monochromatic
#0A0520 #1B0E54 #2C1689 #3D1EBE #5A3ADF

Accessibility & contrast

On white

13.27
#2C1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1689
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1689#FFFFFF#000000##FFFFFF
##2C16891.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1689;
/* rgb */ color: rgb(44, 22, 137);
/* oklch */ color: oklch(32.7% 0.173 279.7);
Tailwind
colors: {
  custom: {
    50: '#7458ad',
    500: '#2c1689',
    950: '#000000',
  },
}
SCSS
$custom: #2c1689;
$custom-light: #7458ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1689",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 251.478,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32737,
    "c": 0.17315,
    "h": 279.7
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#2C1689
secondary
#A5BD3E
accent
#EF39CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1689

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

Preview Lab → · Contrast checker → · Palette generator →

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