#2C0338#2C0338

#2C0338 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.0% C 0.100 H 317.1°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#2C0338
RGBrgb(44, 3, 56)
HSLhsl(286, 90%, 12%)
HSVhsv(286, 95%, 22%)
CMYKcmyk(21.4%, 94.6%, 0%, 78%)
CIE-LABlab(8.01, 29.43, -24.07)
CIE-LCHlch(8.01, 38.02, 320.72°)
OKLaboklab(22.03% 0.073 -0.0679)
OKLCHoklch(22.03% 0.1 317.1)
XYZxyz(1.7850, 0.8862, 3.8176)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0338 #0F3803
analogous
#120338 #2C0338 #38032A
triadic
#2C0338 #382C03 #03382C
tetradic
#2C0338 #381203 #0F3803 #032A38
square
#2C0338 #381203 #0F3803 #032A38
split-complementary
#2C0338 #2A3803 #033812
monochromatic
#17021D #17021D #2C0338 #5A0672 #8709AC

Accessibility & contrast

On white

17.84
#2C0338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0338
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0338#FFFFFF#000000##FFFFFF
##2C03381.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#031937
Tritanopia (blue-blind)
#2B0F1E
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2c0338;
/* rgb */ color: rgb(44, 3, 56);
/* oklch */ color: oklch(22.0% 0.100 317.1);
Tailwind
colors: {
  custom: {
    50: '#68496f',
    500: '#2c0338',
    950: '#000000',
  },
}
SCSS
$custom: #2c0338;
$custom-light: #68496f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0338",
  "rgb": {
    "r": 44,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 286.415,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22027,
    "c": 0.09973,
    "h": 317.1
  },
  "luminance": 0.00886
}

Semantic roles & 50–950 ramp

primary
#2C0338
secondary
#317B1C
accent
#FF2959
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2C0338

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

Preview Lab → · Contrast checker → · Palette generator →

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