#2C1A71#2C1A71

#2C1A71 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.140 H 284.0°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2C1A71
RGBrgb(44, 26, 113)
HSLhsl(252, 63%, 27%)
HSVhsv(252, 77%, 44%)
CMYKcmyk(61.1%, 77%, 0%, 55.7%)
CIE-LABlab(17.77, 33.83, -47.03)
CIE-LCHlch(17.77, 57.93, 305.73°)
OKLaboklab(30.6% 0.0337 -0.1355)
OKLCHoklch(30.6% 0.14 284)
XYZxyz(4.3878, 2.4662, 15.8644)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A71 #5F711A
analogous
#1A3371 #2C1A71 #581A71
triadic
#2C1A71 #712C1A #1A712C
tetradic
#2C1A71 #711A33 #5F711A #1A7158
square
#2C1A71 #711A33 #5F711A #1A7158
split-complementary
#2C1A71 #71581A #33711A
monochromatic
#0A0619 #190F3F #2C1A71 #3F25A3 #5535D0

Accessibility & contrast

On white

14.06
#2C1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A71
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A71#FFFFFF#000000##FFFFFF
##2C1A711.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#043244
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1a71;
/* rgb */ color: rgb(44, 26, 113);
/* oklch */ color: oklch(30.6% 0.140 284.0);
Tailwind
colors: {
  custom: {
    50: '#6e599b',
    500: '#2c1a71',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a71;
$custom-light: #6e599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a71",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 252.414,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30599,
    "c": 0.1396,
    "h": 284
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#2C1A71
secondary
#91A641
accent
#E642C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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