#2C0940#2C0940

#2C0940 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.099 H 309.7°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#2C0940
RGBrgb(44, 9, 64)
HSLhsl(278, 75%, 14%)
HSVhsv(278, 86%, 25%)
CMYKcmyk(31.2%, 85.9%, 0%, 74.9%)
CIE-LABlab(9.81, 28.21, -26.90)
CIE-LCHlch(9.81, 38.98, 316.35°)
OKLaboklab(23.51% 0.0633 -0.0763)
OKLCHoklch(23.51% 0.099 309.7)
XYZxyz(2.0616, 1.1011, 4.9534)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0940 #1D4009
analogous
#110940 #2C0940 #400939
triadic
#2C0940 #402C09 #09402C
tetradic
#2C0940 #401109 #1D4009 #093940
square
#2C0940 #401109 #1D4009 #093940
split-complementary
#2C0940 #394009 #094011
monochromatic
#12041B #12041B #2C0940 #511176 #7618AB

Accessibility & contrast

On white

17.21
#2C0940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2C0940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0940
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0940#FFFFFF#000000##FFFFFF
##2C09401.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#001C3F
Tritanopia (blue-blind)
#291624
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2c0940;
/* rgb */ color: rgb(44, 9, 64);
/* oklch */ color: oklch(23.5% 0.099 309.7);
Tailwind
colors: {
  custom: {
    50: '#684c75',
    500: '#2c0940',
    950: '#000000',
  },
}
SCSS
$custom: #2c0940;
$custom-light: #684c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0940",
  "rgb": {
    "r": 44,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 278.182,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23514,
    "c": 0.09915,
    "h": 309.7
  },
  "luminance": 0.01101
}

Semantic roles & 50–950 ramp

primary
#2C0940
secondary
#477E27
accent
#F2367A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0940

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

Preview Lab → · Contrast checker → · Palette generator →

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