#2C0838#2C0838

#2C0838 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.7% C 0.092 H 316.1°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#2C0838
RGBrgb(44, 8, 56)
HSLhsl(285, 75%, 13%)
HSVhsv(285, 86%, 22%)
CMYKcmyk(21.4%, 85.7%, 0%, 78%)
CIE-LABlab(8.95, 26.70, -22.55)
CIE-LCHlch(8.95, 34.95, 319.82°)
OKLaboklab(22.69% 0.0661 -0.0635)
OKLCHoklch(22.69% 0.092 316.1)
XYZxyz(1.8392, 0.9947, 3.8357)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0838 #143808
analogous
#140838 #2C0838 #38082C
triadic
#2C0838 #382C08 #08382C
tetradic
#2C0838 #381408 #143808 #082C38
square
#2C0838 #381408 #143808 #082C38
split-complementary
#2C0838 #2C3808 #083814
monochromatic
#15041B #15041B #2C0838 #56106E #8017A3

Accessibility & contrast

On white

17.51
#2C0838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2C0838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0838
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0838#FFFFFF#000000##FFFFFF
##2C08381.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#081A37
Tritanopia (blue-blind)
#2B121F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2c0838;
/* rgb */ color: rgb(44, 8, 56);
/* oklch */ color: oklch(22.7% 0.092 316.1);
Tailwind
colors: {
  custom: {
    50: '#674b6f',
    500: '#2c0838',
    950: '#000000',
  },
}
SCSS
$custom: #2c0838;
$custom-light: #674b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0838",
  "rgb": {
    "r": 44,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 285,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.22691,
    "c": 0.09166,
    "h": 316.1
  },
  "luminance": 0.00995
}

Semantic roles & 50–950 ramp

primary
#2C0838
secondary
#397725
accent
#F23665
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2C0838

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

Preview Lab → · Contrast checker → · Palette generator →

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