#2C0C4D#2C0C4D

#2C0C4D is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.111 H 300.8°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#2C0C4D
RGBrgb(44, 12, 77)
HSLhsl(270, 73%, 17%)
HSVhsv(270, 84%, 30%)
CMYKcmyk(42.9%, 84.4%, 0%, 69.8%)
CIE-LABlab(11.51, 30.29, -33.23)
CIE-LCHlch(11.51, 44.97, 312.35°)
OKLaboklab(25.09% 0.0567 -0.0949)
OKLCHoklch(25.09% 0.111 300.8)
XYZxyz(2.5094, 1.3342, 7.1451)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0C4D #2D4D0C
analogous
#0C0D4D #2C0C4D #4C0C4D
triadic
#2C0C4D #4D2C0C #0C4D2C
tetradic
#2C0C4D #4D0C0D #2D4D0C #0C4D4C
square
#2C0C4D #4D0C0D #2D4D0C #0C4D4C
split-complementary
#2C0C4D #4D4C0C #0D4D0C
monochromatic
#0F041A #0F041A #2C0C4D #4A1482 #691DB7

Accessibility & contrast

On white

16.58
#2C0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2C0C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0C4D
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0C4D#FFFFFF#000000##FFFFFF
##2C0C4D1.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#251D2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c0c4d;
/* rgb */ color: rgb(44, 12, 77);
/* oklch */ color: oklch(25.1% 0.111 300.8);
Tailwind
colors: {
  custom: {
    50: '#694f7f',
    500: '#2c0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #2c0c4d;
$custom-light: #694f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0c4d",
  "rgb": {
    "r": 44,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 269.538,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25091,
    "c": 0.11057,
    "h": 300.8
  },
  "luminance": 0.01334
}

Semantic roles & 50–950 ramp

primary
#2C0C4D
secondary
#5B892C
accent
#F03895
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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