#2C1165#2C1165

#2C1165 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.134 H 289.3°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#2C1165
RGBrgb(44, 17, 101)
HSLhsl(259, 71%, 23%)
HSVhsv(259, 83%, 40%)
CMYKcmyk(56.4%, 83.2%, 0%, 60.4%)
CIE-LABlab(14.82, 34.87, -44.02)
CIE-LCHlch(14.82, 56.15, 308.38°)
OKLaboklab(28.15% 0.0444 -0.1266)
OKLCHoklch(28.15% 0.134 289.3)
XYZxyz(3.5874, 1.8758, 12.4824)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1165 #4A6511
analogous
#112065 #2C1165 #561165
triadic
#2C1165 #652C11 #11652C
tetradic
#2C1165 #651120 #4A6511 #116556
square
#2C1165 #651120 #4A6511 #116556
split-complementary
#2C1165 #655611 #206511
monochromatic
#0B041A #150831 #2C1165 #431A99 #5A23CE

Accessibility & contrast

On white

15.27
#2C1165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1165
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1165#FFFFFF#000000##FFFFFF
##2C11651.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002363
Tritanopia (blue-blind)
#16293B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1165;
/* rgb */ color: rgb(44, 17, 101);
/* oklch */ color: oklch(28.2% 0.134 289.3);
Tailwind
colors: {
  custom: {
    50: '#6d5392',
    500: '#2c1165',
    950: '#000000',
  },
}
SCSS
$custom: #2c1165;
$custom-light: #6d5392;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1165",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 259.286,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28153,
    "c": 0.13416,
    "h": 289.3
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#2C1165
secondary
#7C9D35
accent
#EE3AB4
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08020D
muted
#7A787E

Preview Lab

Preview with #2C1165

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

Preview Lab → · Contrast checker → · Palette generator →

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