#2C1559#2C1559

#2C1559 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.114 H 292.8°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#2C1559
RGBrgb(44, 21, 89)
HSLhsl(260, 62%, 22%)
HSVhsv(260, 76%, 35%)
CMYKcmyk(50.6%, 76.4%, 0%, 65.1%)
CIE-LABlab(14.36, 29.05, -36.77)
CIE-LCHlch(14.36, 46.86, 308.31°)
OKLaboklab(27.46% 0.0442 -0.1054)
OKLCHoklch(27.46% 0.114 292.8)
XYZxyz(3.1095, 1.7930, 9.6315)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1559 #425915
analogous
#152059 #2C1559 #4E1559
triadic
#2C1559 #592C15 #15592C
tetradic
#2C1559 #591520 #425915 #15594E
square
#2C1559 #591520 #425915 #15594E
split-complementary
#2C1559 #594E15 #205915
monochromatic
#0C0619 #140927 #2C1559 #44218B #5D2CBC

Accessibility & contrast

On white

15.46
#2C1559 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2C1559 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1559
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1559#FFFFFF#000000##FFFFFF
##2C15591.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#1E2635
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c1559;
/* rgb */ color: rgb(44, 21, 89);
/* oklch */ color: oklch(27.5% 0.114 292.8);
Tailwind
colors: {
  custom: {
    50: '#6a5489',
    500: '#2c1559',
    950: '#000000',
  },
}
SCSS
$custom: #2c1559;
$custom-light: #6a5489;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1559",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 89
  },
  "hsl": {
    "h": 260.294,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27458,
    "c": 0.11427,
    "h": 292.8
  },
  "luminance": 0.01793
}

Semantic roles & 50–950 ramp

primary
#2C1559
secondary
#739139
accent
#E543AE
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1559

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

Preview Lab → · Contrast checker → · Palette generator →

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