#2C1166#2C1166

#2C1166 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.135 H 289.0°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#2C1166
RGBrgb(44, 17, 102)
HSLhsl(259, 71%, 23%)
HSVhsv(259, 83%, 40%)
CMYKcmyk(56.9%, 83.3%, 0%, 60%)
CIE-LABlab(14.93, 35.17, -44.50)
CIE-LCHlch(14.93, 56.72, 308.32°)
OKLaboklab(28.26% 0.0441 -0.128)
OKLCHoklch(28.26% 0.135 289)
XYZxyz(3.6367, 1.8955, 12.7420)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1166 #4B6611
analogous
#112066 #2C1166 #561166
triadic
#2C1166 #662C11 #11662C
tetradic
#2C1166 #661120 #4B6611 #116656
square
#2C1166 #661120 #4B6611 #116656
split-complementary
#2C1166 #665611 #206611
monochromatic
#0B041A #150832 #2C1166 #431A9A #5922CF

Accessibility & contrast

On white

15.23
#2C1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C1166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1166
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1166#FFFFFF#000000##FFFFFF
##2C11661.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002364
Tritanopia (blue-blind)
#152A3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1166;
/* rgb */ color: rgb(44, 17, 102);
/* oklch */ color: oklch(28.3% 0.135 289.0);
Tailwind
colors: {
  custom: {
    50: '#6d5393',
    500: '#2c1166',
    950: '#000000',
  },
}
SCSS
$custom: #2c1166;
$custom-light: #6d5393;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1166",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 259.059,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.2826,
    "c": 0.13538,
    "h": 289
  },
  "luminance": 0.01896
}

Semantic roles & 50–950 ramp

primary
#2C1166
secondary
#7D9E35
accent
#EE3AB5
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2C1166

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

Preview Lab → · Contrast checker → · Palette generator →

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