#2C1251#2C1251

#2C1251 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.108 H 297.2°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#2C1251
RGBrgb(44, 18, 81)
HSLhsl(265, 64%, 19%)
HSVhsv(265, 78%, 32%)
CMYKcmyk(45.7%, 77.8%, 0%, 68.2%)
CIE-LABlab(13.00, 28.32, -33.56)
CIE-LCHlch(13.00, 43.91, 310.16°)
OKLaboklab(26.26% 0.0493 -0.0959)
OKLCHoklch(26.26% 0.108 297.2)
XYZxyz(2.7398, 1.5621, 7.9402)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1251 #375112
analogous
#121851 #2C1251 #4C1251
triadic
#2C1251 #512C12 #12512C
tetradic
#2C1251 #511218 #375112 #12514C
square
#2C1251 #511218 #375112 #12514C
split-complementary
#2C1251 #514C12 #185112
monochromatic
#0E0619 #11071F #2C1251 #471D83 #6228B5

Accessibility & contrast

On white

16.00
#2C1251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2C1251 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1251
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1251#FFFFFF#000000##FFFFFF
##2C12511.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#232230
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1251;
/* rgb */ color: rgb(44, 18, 81);
/* oklch */ color: oklch(26.3% 0.108 297.2);
Tailwind
colors: {
  custom: {
    50: '#695282',
    500: '#2c1251',
    950: '#000000',
  },
}
SCSS
$custom: #2c1251;
$custom-light: #695282;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1251",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 264.762,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26256,
    "c": 0.10786,
    "h": 297.2
  },
  "luminance": 0.01562
}

Semantic roles & 50–950 ramp

primary
#2C1251
secondary
#678A35
accent
#E741A2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C1251

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

Preview Lab → · Contrast checker → · Palette generator →

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