#2C1666#2C1666

#2C1666 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.130 H 287.9°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#2C1666
RGBrgb(44, 22, 102)
HSLhsl(257, 65%, 24%)
HSVhsv(257, 78%, 40%)
CMYKcmyk(56.9%, 78.4%, 0%, 60%)
CIE-LABlab(15.84, 32.56, -43.00)
CIE-LCHlch(15.84, 53.94, 307.13°)
OKLaboklab(28.9% 0.04 -0.1237)
OKLCHoklch(28.9% 0.13 287.9)
XYZxyz(3.7232, 2.0684, 12.7709)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1666 #506616
analogous
#162866 #2C1666 #541666
triadic
#2C1666 #662C16 #16662C
tetradic
#2C1666 #661628 #506616 #166654
square
#2C1666 #661628 #506616 #166654
split-complementary
#2C1666 #665416 #286616
monochromatic
#0B0519 #160B34 #2C1666 #422198 #572CCB

Accessibility & contrast

On white

14.85
#2C1666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2C1666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1666
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1666#FFFFFF#000000##FFFFFF
##2C16661.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#152C3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c1666;
/* rgb */ color: rgb(44, 22, 102);
/* oklch */ color: oklch(28.9% 0.130 287.9);
Tailwind
colors: {
  custom: {
    50: '#6d5692',
    500: '#2c1666',
    950: '#000000',
  },
}
SCSS
$custom: #2c1666;
$custom-light: #6d5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1666",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 256.5,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28899,
    "c": 0.12997,
    "h": 287.9
  },
  "luminance": 0.02069
}

Semantic roles & 50–950 ramp

primary
#2C1666
secondary
#829D3B
accent
#E840BA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1666

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

Preview Lab → · Contrast checker → · Palette generator →

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