#2C0C4F#2C0C4F

#2C0C4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.113 H 299.8°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#2C0C4F
RGBrgb(44, 12, 79)
HSLhsl(269, 74%, 18%)
HSVhsv(269, 85%, 31%)
CMYKcmyk(44.3%, 84.8%, 0%, 69%)
CIE-LABlab(11.71, 30.86, -34.29)
CIE-LCHlch(11.71, 46.13, 311.98°)
OKLaboklab(25.29% 0.0561 -0.098)
OKLCHoklch(25.29% 0.113 299.8)
XYZxyz(2.5811, 1.3629, 7.5227)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0C4F #2F4F0C
analogous
#0C0D4F #2C0C4F #4D0C4F
triadic
#2C0C4F #4F2C0C #0C4F2C
tetradic
#2C0C4F #4F0C0D #2F4F0C #0C4F4D
square
#2C0C4F #4F0C0D #2F4F0C #0C4F4D
split-complementary
#2C0C4F #4F4D0C #0D4F0C
monochromatic
#0F041B #0F041B #2C0C4F #4A1484 #671CB9

Accessibility & contrast

On white

16.50
#2C0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0C4F
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0C4F#FFFFFF#000000##FFFFFF
##2C0C4F1.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#241E2D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c0c4f;
/* rgb */ color: rgb(44, 12, 79);
/* oklch */ color: oklch(25.3% 0.113 299.8);
Tailwind
colors: {
  custom: {
    50: '#6a4f81',
    500: '#2c0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #2c0c4f;
$custom-light: #6a4f81;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0c4f",
  "rgb": {
    "r": 44,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 268.657,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25288,
    "c": 0.11294,
    "h": 299.8
  },
  "luminance": 0.01363
}

Semantic roles & 50–950 ramp

primary
#2C0C4F
secondary
#5E8B2C
accent
#F03898
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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