#2C1E34#2C1E34

#2C1E34 is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.3% C 0.044 H 312.7°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#2C1E34
RGBrgb(44, 30, 52)
HSLhsl(278, 27%, 16%)
HSVhsv(278, 42%, 20%)
CMYKcmyk(15.4%, 42.3%, 0%, 79.6%)
CIE-LABlab(13.90, 11.94, -11.84)
CIE-LCHlch(13.90, 16.82, 315.23°)
OKLaboklab(26.25% 0.03 -0.0326)
OKLCHoklch(26.25% 0.044 312.7)
XYZxyz(2.1227, 1.7120, 3.4668)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E34 #26341E
analogous
#211E34 #2C1E34 #341E31
triadic
#2C1E34 #342C1E #1E342C
tetradic
#2C1E34 #34211E #26341E #1E3134
square
#2C1E34 #34211E #26341E #1E3134
split-complementary
#2C1E34 #31341E #1E3421
monochromatic
#100B13 #100B13 #2C1E34 #4D345B #6E4B82

Accessibility & contrast

On white

15.64
#2C1E34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2C1E34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E34
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E34#FFFFFF#000000##FFFFFF
##2C1E341.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2335
Deuteranopia (green-blind)
#1D2433
Tritanopia (blue-blind)
#2B2126
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1e34;
/* rgb */ color: rgb(44, 30, 52);
/* oklch */ color: oklch(26.3% 0.044 312.7);
Tailwind
colors: {
  custom: {
    50: '#655a6b',
    500: '#2c1e34',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e34;
$custom-light: #655a6b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e34",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 52
  },
  "hsl": {
    "h": 278.182,
    "s": 26.829,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2625,
    "c": 0.04432,
    "h": 312.7
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

primary
#2C1E34
secondary
#526747
accent
#C36587
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#050306
muted
#7A787A

Preview Lab

Preview with #2C1E34

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

Preview Lab → · Contrast checker → · Palette generator →

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