#2C0C40#2C0C40

#2C0C40 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.095 H 309.0°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#2C0C40
RGBrgb(44, 12, 64)
HSLhsl(277, 68%, 15%)
HSVhsv(277, 81%, 25%)
CMYKcmyk(31.2%, 81.2%, 0%, 74.9%)
CIE-LABlab(10.32, 26.74, -26.07)
CIE-LCHlch(10.32, 37.34, 315.73°)
OKLaboklab(23.88% 0.0598 -0.0739)
OKLCHoklch(23.88% 0.095 309)
XYZxyz(2.0954, 1.1686, 4.9647)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0C40 #20400C
analogous
#120C40 #2C0C40 #400C3A
triadic
#2C0C40 #402C0C #0C402C
tetradic
#2C0C40 #40120C #20400C #0C3A40
square
#2C0C40 #40120C #20400C #0C3A40
split-complementary
#2C0C40 #3A400C #0C4012
monochromatic
#12051A #12051A #2C0C40 #4F1674 #731FA7

Accessibility & contrast

On white

17.02
#2C0C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0C40
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0C40#FFFFFF#000000##FFFFFF
##2C0C401.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#021D3F
Tritanopia (blue-blind)
#291825
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2c0c40;
/* rgb */ color: rgb(44, 12, 64);
/* oklch */ color: oklch(23.9% 0.095 309.0);
Tailwind
colors: {
  custom: {
    50: '#684e75',
    500: '#2c0c40',
    950: '#000000',
  },
}
SCSS
$custom: #2c0c40;
$custom-light: #684e75;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0c40",
  "rgb": {
    "r": 44,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 276.923,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2388,
    "c": 0.09506,
    "h": 309
  },
  "luminance": 0.01169
}

Semantic roles & 50–950 ramp

primary
#2C0C40
secondary
#4B7C2C
accent
#EB3D80
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2C0C40

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

Preview Lab → · Contrast checker → · Palette generator →

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