#2C1159#2C1159

#2C1159 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.119 H 293.9°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#2C1159
RGBrgb(44, 17, 89)
HSLhsl(263, 68%, 21%)
HSVhsv(263, 81%, 35%)
CMYKcmyk(50.6%, 80.9%, 0%, 65.1%)
CIE-LABlab(13.58, 31.26, -38.05)
CIE-LCHlch(13.58, 49.24, 309.41°)
OKLaboklab(26.9% 0.0483 -0.1091)
OKLCHoklch(26.9% 0.119 293.9)
XYZxyz(3.0418, 1.6575, 9.6089)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1159 #3E5911
analogous
#111A59 #2C1159 #501159
triadic
#2C1159 #592C11 #11592C
tetradic
#2C1159 #59111A #3E5911 #115950
square
#2C1159 #59111A #3E5911 #115950
split-complementary
#2C1159 #595011 #1A5911
monochromatic
#0D051A #130726 #2C1159 #451B8C #5F25C0

Accessibility & contrast

On white

15.77
#2C1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2C1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1159
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1159#FFFFFF#000000##FFFFFF
##2C11591.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235B
Deuteranopia (green-blind)
#002158
Tritanopia (blue-blind)
#1E2434
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1159;
/* rgb */ color: rgb(44, 17, 89);
/* oklch */ color: oklch(26.9% 0.119 293.9);
Tailwind
colors: {
  custom: {
    50: '#6b5289',
    500: '#2c1159',
    950: '#000000',
  },
}
SCSS
$custom: #2c1159;
$custom-light: #6b5289;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1159",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 262.5,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26903,
    "c": 0.11931,
    "h": 293.9
  },
  "luminance": 0.01658
}

Semantic roles & 50–950 ramp

primary
#2C1159
secondary
#6F9234
accent
#EB3DAA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1159

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

Preview Lab → · Contrast checker → · Palette generator →

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