#2C1684#2C1684

#2C1684 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.167 H 280.6°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#2C1684
RGBrgb(44, 22, 132)
HSLhsl(252, 71%, 30%)
HSVhsv(252, 83%, 52%)
CMYKcmyk(66.7%, 83.3%, 0%, 48.2%)
CIE-LABlab(19.12, 41.90, -56.94)
CIE-LCHlch(19.12, 70.69, 306.35°)
OKLaboklab(32.17% 0.0307 -0.1643)
OKLCHoklch(32.17% 0.167 280.6)
XYZxyz(5.4892, 2.7748, 22.0716)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1684 #6E8416
analogous
#163784 #2C1684 #631684
triadic
#2C1684 #842C16 #16842C
tetradic
#2C1684 #841637 #6E8416 #168463
square
#2C1684 #841637 #6E8416 #168463
split-complementary
#2C1684 #846316 #378416
monochromatic
#09051B #1B0D50 #2C1684 #3D1FB8 #5837DE

Accessibility & contrast

On white

13.50
#2C1684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2C1684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1684
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1684#FFFFFF#000000##FFFFFF
##2C16841.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c1684;
/* rgb */ color: rgb(44, 22, 132);
/* oklch */ color: oklch(32.2% 0.167 280.6);
Tailwind
colors: {
  custom: {
    50: '#7358a9',
    500: '#2c1684',
    950: '#000000',
  },
}
SCSS
$custom: #2c1684;
$custom-light: #7358a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1684",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 252,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32165,
    "c": 0.16718,
    "h": 280.6
  },
  "luminance": 0.02775
}

Semantic roles & 50–950 ramp

primary
#2C1684
secondary
#A0B83D
accent
#EE3ACA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1684

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

Preview Lab → · Contrast checker → · Palette generator →

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