#2C0340#2C0340

#2C0340 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.8% C 0.108 H 311.0°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#2C0340
RGBrgb(44, 3, 64)
HSLhsl(280, 91%, 13%)
HSVhsv(280, 95%, 25%)
CMYKcmyk(31.2%, 95.3%, 0%, 74.9%)
CIE-LABlab(8.75, 31.30, -28.63)
CIE-LCHlch(8.75, 42.41, 317.55°)
OKLaboklab(22.77% 0.0706 -0.0813)
OKLCHoklch(22.77% 0.108 311)
XYZxyz(1.9965, 0.9708, 4.9317)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0340 #174003
analogous
#0D0340 #2C0340 #400335
triadic
#2C0340 #402C03 #03402C
tetradic
#2C0340 #400D03 #174003 #033540
square
#2C0340 #400D03 #174003 #033540
split-complementary
#2C0340 #354003 #03400D
monochromatic
#14011D #14011D #2C0340 #54067A #7C08B5

Accessibility & contrast

On white

17.58
#2C0340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2C0340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0340
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0340#FFFFFF#000000##FFFFFF
##2C03401.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#291322
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2c0340;
/* rgb */ color: rgb(44, 3, 64);
/* oklch */ color: oklch(22.8% 0.108 311.0);
Tailwind
colors: {
  custom: {
    50: '#694975',
    500: '#2c0340',
    950: '#000000',
  },
}
SCSS
$custom: #2c0340;
$custom-light: #694975;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0340",
  "rgb": {
    "r": 44,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 280.328,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22774,
    "c": 0.10766,
    "h": 311
  },
  "luminance": 0.00971
}

Semantic roles & 50–950 ramp

primary
#2C0340
secondary
#3E821D
accent
#FF296F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0340

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

Preview Lab → · Contrast checker → · Palette generator →

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