#2C0239#2C0239

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

Color values

HEX#2C0239
RGBrgb(44, 2, 57)
HSLhsl(286, 93%, 12%)
HSVhsv(286, 96%, 22%)
CMYKcmyk(22.8%, 96.5%, 0%, 77.6%)
CIE-LABlab(7.90, 30.23, -24.97)
CIE-LCHlch(7.90, 39.21, 320.45°)
OKLaboklab(21.98% 0.0742 -0.0705)
OKLCHoklch(21.98% 0.102 316.5)
XYZxyz(1.7988, 0.8744, 3.9441)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0239 #0F3902
analogous
#110239 #2C0239 #39022B
triadic
#2C0239 #392C02 #02392C
tetradic
#2C0239 #391102 #0F3902 #022B39
square
#2C0239 #391102 #0F3902 #022B39
split-complementary
#2C0239 #2B3902 #023911
monochromatic
#17011E #17011E #2C0239 #5A0474 #8706AF

Accessibility & contrast

On white

17.88
#2C0239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2C0239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0239
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0239#FFFFFF#000000##FFFFFF
##2C02391.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c0239;
/* rgb */ color: rgb(44, 2, 57);
/* oklch */ color: oklch(22.0% 0.102 316.5);
Tailwind
colors: {
  custom: {
    50: '#684870',
    500: '#2c0239',
    950: '#000000',
  },
}
SCSS
$custom: #2c0239;
$custom-light: #684870;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0239",
  "rgb": {
    "r": 44,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 285.818,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21981,
    "c": 0.1024,
    "h": 316.5
  },
  "luminance": 0.00874
}

Semantic roles & 50–950 ramp

primary
#2C0239
secondary
#317D1A
accent
#FF295B
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2C0239

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

Preview Lab → · Contrast checker → · Palette generator →

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