#2C0339#2C0339

#2C0339 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.1% C 0.101 H 316.3°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#2C0339
RGBrgb(44, 3, 57)
HSLhsl(286, 90%, 12%)
HSVhsv(286, 95%, 22%)
CMYKcmyk(22.8%, 94.7%, 0%, 77.6%)
CIE-LABlab(8.09, 29.66, -24.65)
CIE-LCHlch(8.09, 38.57, 320.27°)
OKLaboklab(22.12% 0.0728 -0.0696)
OKLCHoklch(22.12% 0.101 316.3)
XYZxyz(1.8097, 0.8961, 3.9477)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0339 #103903
analogous
#110339 #2C0339 #39032B
triadic
#2C0339 #392C03 #03392C
tetradic
#2C0339 #391103 #103903 #032B39
square
#2C0339 #391103 #103903 #032B39
split-complementary
#2C0339 #2B3903 #033911
monochromatic
#16021D #16021D #2C0339 #590673 #8609AD

Accessibility & contrast

On white

17.81
#2C0339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2C0339 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0339
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0339#FFFFFF#000000##FFFFFF
##2C03391.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#021938
Tritanopia (blue-blind)
#2B0F1E
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2c0339;
/* rgb */ color: rgb(44, 3, 57);
/* oklch */ color: oklch(22.1% 0.101 316.3);
Tailwind
colors: {
  custom: {
    50: '#684970',
    500: '#2c0339',
    950: '#000000',
  },
}
SCSS
$custom: #2c0339;
$custom-light: #684970;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0339",
  "rgb": {
    "r": 44,
    "g": 3,
    "b": 57
  },
  "hsl": {
    "h": 285.556,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22117,
    "c": 0.10072,
    "h": 316.3
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#2C0339
secondary
#337C1C
accent
#FF295C
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2C0339

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

Preview Lab → · Contrast checker → · Palette generator →

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