#2C0A42#2C0A42

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

Color values

HEX#2C0A42
RGBrgb(44, 10, 66)
HSLhsl(276, 74%, 15%)
HSVhsv(276, 85%, 26%)
CMYKcmyk(33.3%, 84.8%, 0%, 74.1%)
CIE-LABlab(10.15, 28.25, -27.76)
CIE-LCHlch(10.15, 39.61, 315.50°)
OKLaboklab(23.81% 0.0617 -0.0788)
OKLCHoklch(23.81% 0.1 308.1)
XYZxyz(2.1304, 1.1459, 5.2622)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0A42 #20420A
analogous
#100A42 #2C0A42 #420A3C
triadic
#2C0A42 #422C0A #0A422C
tetradic
#2C0A42 #42100A #20420A #0A3C42
square
#2C0A42 #42100A #20420A #0A3C42
split-complementary
#2C0A42 #3C420A #0A4210
monochromatic
#12041B #12041B #2C0A42 #4F1277 #731AAC

Accessibility & contrast

On white

17.08
#2C0A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0A42
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0A42#FFFFFF#000000##FFFFFF
##2C0A421.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#281825
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2c0a42;
/* rgb */ color: rgb(44, 10, 66);
/* oklch */ color: oklch(23.8% 0.100 308.1);
Tailwind
colors: {
  custom: {
    50: '#684d77',
    500: '#2c0a42',
    950: '#000000',
  },
}
SCSS
$custom: #2c0a42;
$custom-light: #684d77;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0a42",
  "rgb": {
    "r": 44,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 276.429,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23814,
    "c": 0.10012,
    "h": 308.1
  },
  "luminance": 0.01146
}

Semantic roles & 50–950 ramp

primary
#2C0A42
secondary
#4B7F29
accent
#F03780
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0A42

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

Preview Lab → · Contrast checker → · Palette generator →

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