#2C1452#2C1452

#2C1452 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.106 H 296.1°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#2C1452
RGBrgb(44, 20, 82)
HSLhsl(263, 61%, 20%)
HSVhsv(263, 76%, 32%)
CMYKcmyk(46.3%, 75.6%, 0%, 67.8%)
CIE-LABlab(13.50, 27.47, -33.42)
CIE-LCHlch(13.50, 43.27, 309.42°)
OKLaboklab(26.64% 0.0468 -0.0955)
OKLCHoklch(26.64% 0.106 296.1)
XYZxyz(2.8115, 1.6449, 8.1504)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1452 #3A5214
analogous
#141B52 #2C1452 #4B1452
triadic
#2C1452 #522C14 #14522C
tetradic
#2C1452 #52141B #3A5214 #14524B
square
#2C1452 #52141B #3A5214 #14524B
split-complementary
#2C1452 #524B14 #1B5214
monochromatic
#0D0619 #120821 #2C1452 #462083 #612CB4

Accessibility & contrast

On white

15.80
#2C1452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1452
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1452#FFFFFF#000000##FFFFFF
##2C14521.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#222331
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1452;
/* rgb */ color: rgb(44, 20, 82);
/* oklch */ color: oklch(26.6% 0.106 296.1);
Tailwind
colors: {
  custom: {
    50: '#695383',
    500: '#2c1452',
    950: '#000000',
  },
}
SCSS
$custom: #2c1452;
$custom-light: #695383;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1452",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 263.226,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.26643,
    "c": 0.10639,
    "h": 296.1
  },
  "luminance": 0.01645
}

Semantic roles & 50–950 ramp

primary
#2C1452
secondary
#6A8A38
accent
#E444A6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1452

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

Preview Lab → · Contrast checker → · Palette generator →

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