#2C1558#2C1558

#2C1558 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.113 H 293.2°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#2C1558
RGBrgb(44, 21, 88)
HSLhsl(261, 61%, 21%)
HSVhsv(261, 76%, 35%)
CMYKcmyk(50%, 76.1%, 0%, 65.5%)
CIE-LABlab(14.27, 28.74, -36.25)
CIE-LCHlch(14.27, 46.26, 308.41°)
OKLaboklab(27.36% 0.0444 -0.1038)
OKLCHoklch(27.36% 0.113 293.2)
XYZxyz(3.0678, 1.7763, 9.4118)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1558 #415815
analogous
#152058 #2C1558 #4E1558
triadic
#2C1558 #582C15 #15582C
tetradic
#2C1558 #581520 #415815 #15584E
square
#2C1558 #581520 #415815 #15584E
split-complementary
#2C1558 #584E15 #205815
monochromatic
#0C0619 #130927 #2C1558 #452189 #5D2DBB

Accessibility & contrast

On white

15.50
#2C1558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1558
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1558#FFFFFF#000000##FFFFFF
##2C15581.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#1F2634
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c1558;
/* rgb */ color: rgb(44, 21, 88);
/* oklch */ color: oklch(27.4% 0.113 293.2);
Tailwind
colors: {
  custom: {
    50: '#6a5488',
    500: '#2c1558',
    950: '#000000',
  },
}
SCSS
$custom: #2c1558;
$custom-light: #6a5488;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1558",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 260.597,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27361,
    "c": 0.11295,
    "h": 293.2
  },
  "luminance": 0.01776
}

Semantic roles & 50–950 ramp

primary
#2C1558
secondary
#729039
accent
#E543AD
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1558

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

Preview Lab → · Contrast checker → · Palette generator →

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