#2C1B7D#2C1B7D

#2C1B7D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.154 H 281.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#2C1B7D
RGBrgb(44, 27, 125)
HSLhsl(250, 64%, 30%)
HSVhsv(250, 78%, 49%)
CMYKcmyk(64.8%, 78.4%, 0%, 51%)
CIE-LABlab(19.22, 37.15, -52.33)
CIE-LCHlch(19.22, 64.17, 305.37°)
OKLaboklab(32.01% 0.0298 -0.151)
OKLCHoklch(32.01% 0.154 281.2)
XYZxyz(5.1311, 2.7996, 19.6680)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B7D #6C7D1B
analogous
#1B3B7D #2C1B7D #5D1B7D
triadic
#2C1B7D #7D2C1B #1B7D2C
tetradic
#2C1B7D #7D1B3B #6C7D1B #1B7D5D
square
#2C1B7D #7D1B3B #6C7D1B #1B7D5D
split-complementary
#2C1B7D #7D5D1B #3B7D1B
monochromatic
#090519 #1A104B #2C1B7D #3E26AF #583DD5

Accessibility & contrast

On white

13.46
#2C1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1B7D
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B7D#FFFFFF#000000##FFFFFF
##2C1B7D1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1b7d;
/* rgb */ color: rgb(44, 27, 125);
/* oklch */ color: oklch(32.0% 0.154 281.2);
Tailwind
colors: {
  custom: {
    50: '#715aa4',
    500: '#2c1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b7d;
$custom-light: #715aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b7d",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 250.408,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32006,
    "c": 0.15389,
    "h": 281.2
  },
  "luminance": 0.028
}

Semantic roles & 50–950 ramp

primary
#2C1B7D
secondary
#9EB143
accent
#E740CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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