#2C1281#2C1281

#2C1281 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.167 H 281.7°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#2C1281
RGBrgb(44, 18, 129)
HSLhsl(254, 76%, 29%)
HSVhsv(254, 86%, 51%)
CMYKcmyk(65.9%, 86%, 0%, 49.4%)
CIE-LABlab(18.16, 42.79, -56.63)
CIE-LCHlch(18.16, 70.98, 307.07°)
OKLaboklab(31.4% 0.0337 -0.1634)
OKLCHoklch(31.4% 0.167 281.7)
XYZxyz(5.2162, 2.5527, 20.9825)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1281 #678112
analogous
#123081 #2C1281 #641281
triadic
#2C1281 #812C12 #12812C
tetradic
#2C1281 #811230 #678112 #128164
square
#2C1281 #811230 #678112 #128164
split-complementary
#2C1281 #816412 #308112
monochromatic
#09041B #1A0B4B #2C1281 #3E19B7 #562CE2

Accessibility & contrast

On white

13.90
#2C1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2C1281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1281
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1281#FFFFFF#000000##FFFFFF
##2C12811.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1281;
/* rgb */ color: rgb(44, 18, 129);
/* oklch */ color: oklch(31.4% 0.167 281.7);
Tailwind
colors: {
  custom: {
    50: '#7256a7',
    500: '#2c1281',
    950: '#000000',
  },
}
SCSS
$custom: #2c1281;
$custom-light: #7256a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1281",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 254.054,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31398,
    "c": 0.16685,
    "h": 281.7
  },
  "luminance": 0.02553
}

Semantic roles & 50–950 ramp

primary
#2C1281
secondary
#99B738
accent
#F236C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1281

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

Preview Lab → · Contrast checker → · Palette generator →

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