#2C1B6D#2C1B6D

#2C1B6D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.133 H 284.7°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#2C1B6D
RGBrgb(44, 27, 109)
HSLhsl(252, 60%, 27%)
HSVhsv(252, 75%, 43%)
CMYKcmyk(59.6%, 75.2%, 0%, 57.3%)
CIE-LABlab(17.57, 31.94, -44.75)
CIE-LCHlch(17.57, 54.98, 305.52°)
OKLaboklab(30.34% 0.0338 -0.1288)
OKLCHoklch(30.34% 0.133 284.7)
XYZxyz(4.1901, 2.4232, 14.7120)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B6D #5C6D1B
analogous
#1B336D #2C1B6D #551B6D
triadic
#2C1B6D #6D2C1B #1B6D2C
tetradic
#2C1B6D #6D1B33 #5C6D1B #1B6D55
square
#2C1B6D #6D1B33 #5C6D1B #1B6D55
split-complementary
#2C1B6D #6D551B #336D1B
monochromatic
#0A0619 #180F3C #2C1B6D #40279E #5535CD

Accessibility & contrast

On white

14.15
#2C1B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2C1B6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B6D
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B6D#FFFFFF#000000##FFFFFF
##2C1B6D1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#0B3142
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1b6d;
/* rgb */ color: rgb(44, 27, 109);
/* oklch */ color: oklch(30.3% 0.133 284.7);
Tailwind
colors: {
  custom: {
    50: '#6d5998',
    500: '#2c1b6d',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b6d;
$custom-light: #6d5998;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b6d",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 252.439,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30336,
    "c": 0.13319,
    "h": 284.7
  },
  "luminance": 0.02423
}

Semantic roles & 50–950 ramp

primary
#2C1B6D
secondary
#8EA242
accent
#E344C2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2C1B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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