#2C0A40#2C0A40

#2C0A40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.098 H 309.5°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#2C0A40
RGBrgb(44, 10, 64)
HSLhsl(278, 73%, 15%)
HSVhsv(278, 84%, 25%)
CMYKcmyk(31.2%, 84.4%, 0%, 74.9%)
CIE-LABlab(9.98, 27.72, -26.63)
CIE-LCHlch(9.98, 38.44, 316.15°)
OKLaboklab(23.63% 0.0622 -0.0755)
OKLCHoklch(23.63% 0.098 309.5)
XYZxyz(2.0725, 1.1228, 4.9570)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0A40 #1E400A
analogous
#110A40 #2C0A40 #400A39
triadic
#2C0A40 #402C0A #0A402C
tetradic
#2C0A40 #40110A #1E400A #0A3940
square
#2C0A40 #40110A #1E400A #0A3940
split-complementary
#2C0A40 #39400A #0A4011
monochromatic
#12041A #12041A #2C0A40 #501275 #751BAA

Accessibility & contrast

On white

17.15
#2C0A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0A40
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0A40#FFFFFF#000000##FFFFFF
##2C0A401.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c0a40;
/* rgb */ color: rgb(44, 10, 64);
/* oklch */ color: oklch(23.6% 0.098 309.5);
Tailwind
colors: {
  custom: {
    50: '#684d75',
    500: '#2c0a40',
    950: '#000000',
  },
}
SCSS
$custom: #2c0a40;
$custom-light: #684d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0a40",
  "rgb": {
    "r": 44,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 277.778,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23633,
    "c": 0.09782,
    "h": 309.5
  },
  "luminance": 0.01123
}

Semantic roles & 50–950 ramp

primary
#2C0A40
secondary
#487D29
accent
#F0387C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0A40

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

Preview Lab → · Contrast checker → · Palette generator →

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