#2C2139#2C2139

#2C2139 is a dark, muted violet. Relative luminance 0.019; OKLCH L 27.2% C 0.046 H 304.6°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2C2139
RGBrgb(44, 33, 57)
HSLhsl(268, 27%, 18%)
HSVhsv(268, 42%, 22%)
CMYKcmyk(22.8%, 42.1%, 0%, 77.6%)
CIE-LABlab(15.05, 11.20, -13.59)
CIE-LCHlch(15.05, 17.62, 309.50°)
OKLaboklab(27.22% 0.026 -0.0376)
OKLCHoklch(27.22% 0.046 304.6)
XYZxyz(2.3209, 1.9186, 4.1182)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2139 #2E3921
analogous
#212239 #2C2139 #382139
triadic
#2C2139 #392C21 #21392C
tetradic
#2C2139 #392122 #2E3921 #213938
square
#2C2139 #392122 #2E3921 #213938
split-complementary
#2C2139 #393821 #223921
monochromatic
#0F0B13 #0F0B13 #2C2139 #4A3760 #684E87

Accessibility & contrast

On white

15.18
#2C2139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C2139 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2139
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2139#FFFFFF#000000##FFFFFF
##2C21391.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C253A
Deuteranopia (green-blind)
#1E2638
Tritanopia (blue-blind)
#2A252A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c2139;
/* rgb */ color: rgb(44, 33, 57);
/* oklch */ color: oklch(27.2% 0.046 304.6);
Tailwind
colors: {
  custom: {
    50: '#655c6f',
    500: '#2c2139',
    950: '#000000',
  },
}
SCSS
$custom: #2c2139;
$custom-light: #655c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2139",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 57
  },
  "hsl": {
    "h": 267.5,
    "s": 26.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27216,
    "c": 0.0457,
    "h": 304.6
  },
  "luminance": 0.01919
}

Semantic roles & 50–950 ramp

primary
#2C2139
secondary
#5C6C4A
accent
#C36598
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#050407
muted
#7A797A

Preview Lab

Preview with #2C2139

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

Preview Lab → · Contrast checker → · Palette generator →

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