#2C1381#2C1381

#2C1381 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.166 H 281.6°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2C1381
RGBrgb(44, 19, 129)
HSLhsl(254, 74%, 29%)
HSVhsv(254, 85%, 51%)
CMYKcmyk(65.9%, 85.3%, 0%, 49.4%)
CIE-LABlab(18.30, 42.36, -56.39)
CIE-LCHlch(18.30, 70.53, 306.91°)
OKLaboklab(31.5% 0.0333 -0.1627)
OKLCHoklch(31.5% 0.166 281.6)
XYZxyz(5.2328, 2.5858, 20.9880)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1381 #688113
analogous
#133181 #2C1381 #631381
triadic
#2C1381 #812C13 #13812C
tetradic
#2C1381 #811331 #688113 #138163
square
#2C1381 #811331 #688113 #138163
split-complementary
#2C1381 #816313 #318113
monochromatic
#09041B #1A0B4C #2C1381 #3E1BB6 #572EE0

Accessibility & contrast

On white

13.84
#2C1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1381
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1381#FFFFFF#000000##FFFFFF
##2C13811.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1381;
/* rgb */ color: rgb(44, 19, 129);
/* oklch */ color: oklch(31.5% 0.166 281.6);
Tailwind
colors: {
  custom: {
    50: '#7256a7',
    500: '#2c1381',
    950: '#000000',
  },
}
SCSS
$custom: #2c1381;
$custom-light: #7256a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1381",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 253.636,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31499,
    "c": 0.16606,
    "h": 281.6
  },
  "luminance": 0.02586
}

Semantic roles & 50–950 ramp

primary
#2C1381
secondary
#9AB63A
accent
#F137C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1381

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

Preview Lab → · Contrast checker → · Palette generator →

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