#2C0C4E#2C0C4E

#2C0C4E is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.2% C 0.112 H 300.3°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#2C0C4E
RGBrgb(44, 12, 78)
HSLhsl(269, 73%, 18%)
HSVhsv(269, 85%, 31%)
CMYKcmyk(43.6%, 84.6%, 0%, 69.4%)
CIE-LABlab(11.61, 30.57, -33.76)
CIE-LCHlch(11.61, 45.55, 312.16°)
OKLaboklab(25.19% 0.0564 -0.0965)
OKLCHoklch(25.19% 0.112 300.3)
XYZxyz(2.5450, 1.3485, 7.3324)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0C4E #2E4E0C
analogous
#0C0D4E #2C0C4E #4D0C4E
triadic
#2C0C4E #4E2C0C #0C4E2C
tetradic
#2C0C4E #4E0C0D #2E4E0C #0C4E4D
square
#2C0C4E #4E0C0D #2E4E0C #0C4E4D
split-complementary
#2C0C4E #4E4D0C #0D4E0C
monochromatic
#0F041B #0F041B #2C0C4E #4A1483 #681CB8

Accessibility & contrast

On white

16.54
#2C0C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0C4E
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0C4E#FFFFFF#000000##FFFFFF
##2C0C4E1.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c0c4e;
/* rgb */ color: rgb(44, 12, 78);
/* oklch */ color: oklch(25.2% 0.112 300.3);
Tailwind
colors: {
  custom: {
    50: '#694f80',
    500: '#2c0c4e',
    950: '#000000',
  },
}
SCSS
$custom: #2c0c4e;
$custom-light: #694f80;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0c4e",
  "rgb": {
    "r": 44,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 269.091,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25189,
    "c": 0.11175,
    "h": 300.3
  },
  "luminance": 0.01348
}

Semantic roles & 50–950 ramp

primary
#2C0C4E
secondary
#5C8A2C
accent
#F03897
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C0C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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