#2C0B40#2C0B40

#2C0B40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.8% C 0.096 H 309.2°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#2C0B40
RGBrgb(44, 11, 64)
HSLhsl(277, 71%, 15%)
HSVhsv(277, 83%, 25%)
CMYKcmyk(31.2%, 82.8%, 0%, 74.9%)
CIE-LABlab(10.15, 27.24, -26.35)
CIE-LCHlch(10.15, 37.90, 315.95°)
OKLaboklab(23.75% 0.061 -0.0747)
OKLCHoklch(23.75% 0.096 309.2)
XYZxyz(2.0836, 1.1450, 4.9607)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0B40 #1F400B
analogous
#110B40 #2C0B40 #400B3A
triadic
#2C0B40 #402C0B #0B402C
tetradic
#2C0B40 #40110B #1F400B #0B3A40
square
#2C0B40 #40110B #1F400B #0B3A40
split-complementary
#2C0B40 #3A400B #0B4011
monochromatic
#12041A #12041A #2C0B40 #501474 #741DA8

Accessibility & contrast

On white

17.09
#2C0B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2C0B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0B40
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0B40#FFFFFF#000000##FFFFFF
##2C0B401.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c0b40;
/* rgb */ color: rgb(44, 11, 64);
/* oklch */ color: oklch(23.8% 0.096 309.2);
Tailwind
colors: {
  custom: {
    50: '#684d75',
    500: '#2c0b40',
    950: '#000000',
  },
}
SCSS
$custom: #2c0b40;
$custom-light: #684d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0b40",
  "rgb": {
    "r": 44,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 277.358,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23754,
    "c": 0.09646,
    "h": 309.2
  },
  "luminance": 0.01145
}

Semantic roles & 50–950 ramp

primary
#2C0B40
secondary
#497D2A
accent
#ED3A7E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0B40

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

Preview Lab → · Contrast checker → · Palette generator →

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