#2C1169#2C1169

#2C1169 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.139 H 288.0°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#2C1169
RGBrgb(44, 17, 105)
HSLhsl(258, 72%, 24%)
HSVhsv(258, 84%, 41%)
CMYKcmyk(58.1%, 83.8%, 0%, 58.8%)
CIE-LABlab(15.26, 36.07, -45.94)
CIE-LCHlch(15.26, 58.41, 308.14°)
OKLaboklab(28.59% 0.0431 -0.1322)
OKLCHoklch(28.59% 0.139 288)
XYZxyz(3.7882, 1.9561, 13.5398)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1169 #4E6911
analogous
#112269 #2C1169 #581169
triadic
#2C1169 #692C11 #11692C
tetradic
#2C1169 #691122 #4E6911 #116958
square
#2C1169 #691122 #4E6911 #116958
split-complementary
#2C1169 #695811 #226911
monochromatic
#0B041A #160834 #2C1169 #421A9E #5822D2

Accessibility & contrast

On white

15.09
#2C1169 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2C1169 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1169
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1169#FFFFFF#000000##FFFFFF
##2C11691.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286B
Deuteranopia (green-blind)
#002467
Tritanopia (blue-blind)
#122B3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1169;
/* rgb */ color: rgb(44, 17, 105);
/* oklch */ color: oklch(28.6% 0.139 288.0);
Tailwind
colors: {
  custom: {
    50: '#6e5395',
    500: '#2c1169',
    950: '#000000',
  },
}
SCSS
$custom: #2c1169;
$custom-light: #6e5395;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1169",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 105
  },
  "hsl": {
    "h": 258.409,
    "s": 72.131,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28585,
    "c": 0.13905,
    "h": 288
  },
  "luminance": 0.01956
}

Semantic roles & 50–950 ramp

primary
#2C1169
secondary
#80A135
accent
#EF39B7
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2C1169

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

Preview Lab → · Contrast checker → · Palette generator →

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