#2C0C4B#2C0C4B

#2C0C4B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.108 H 302.0°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#2C0C4B
RGBrgb(44, 12, 75)
HSLhsl(270, 72%, 17%)
HSVhsv(270, 84%, 29%)
CMYKcmyk(41.3%, 84%, 0%, 70.6%)
CIE-LABlab(11.32, 29.74, -32.16)
CIE-LCHlch(11.32, 43.80, 312.75°)
OKLaboklab(24.9% 0.0573 -0.0918)
OKLCHoklch(24.9% 0.108 302)
XYZxyz(2.4399, 1.3064, 6.7789)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0C4B #2B4B0C
analogous
#0C0C4B #2C0C4B #4B0C4B
triadic
#2C0C4B #4B2C0C #0C4B2C
tetradic
#2C0C4B #4B0C0C #2B4B0C #0C4B4B
square
#2C0C4B #4B0C0C #2B4B0C #0C4B4B
split-complementary
#2C0C4B #4B4B0C #0C4B0C
monochromatic
#0F041A #0F041A #2C0C4B #4B1480 #6A1DB5

Accessibility & contrast

On white

16.65
#2C0C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2C0C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0C4B
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0C4B#FFFFFF#000000##FFFFFF
##2C0C4B1.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#251C2B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2c0c4b;
/* rgb */ color: rgb(44, 12, 75);
/* oklch */ color: oklch(24.9% 0.108 302.0);
Tailwind
colors: {
  custom: {
    50: '#694f7e',
    500: '#2c0c4b',
    950: '#000000',
  },
}
SCSS
$custom: #2c0c4b;
$custom-light: #694f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0c4b",
  "rgb": {
    "r": 44,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 270.476,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24896,
    "c": 0.10819,
    "h": 302
  },
  "luminance": 0.01306
}

Semantic roles & 50–950 ramp

primary
#2C0C4B
secondary
#59872C
accent
#EF3992
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C0C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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