#2C123A#2C123A

#2C123A is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.3% C 0.078 H 312.0°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#2C123A
RGBrgb(44, 18, 58)
HSLhsl(279, 53%, 15%)
HSVhsv(279, 69%, 23%)
CMYKcmyk(24.1%, 69%, 0%, 77.3%)
CIE-LABlab(11.09, 21.70, -20.56)
CIE-LCHlch(11.09, 29.89, 316.55°)
OKLaboklab(24.28% 0.052 -0.0577)
OKLCHoklch(24.28% 0.078 312)
XYZxyz(2.0186, 1.2736, 4.1417)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C123A #203A12
analogous
#18123A #2C123A #3A1234
triadic
#2C123A #3A2C12 #123A2C
tetradic
#2C123A #3A1812 #203A12 #12343A
square
#2C123A #3A1812 #203A12 #12343A
split-complementary
#2C123A #343A12 #123A18
monochromatic
#120717 #120717 #2C123A #4F2069 #732F97

Accessibility & contrast

On white

16.74
#2C123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2C123A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C123A
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C123A#FFFFFF#000000##FFFFFF
##2C123A1.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051C3B
Deuteranopia (green-blind)
#0F1E39
Tritanopia (blue-blind)
#2A1923
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2c123a;
/* rgb */ color: rgb(44, 18, 58);
/* oklch */ color: oklch(24.3% 0.078 312.0);
Tailwind
colors: {
  custom: {
    50: '#675170',
    500: '#2c123a',
    950: '#000000',
  },
}
SCSS
$custom: #2c123a;
$custom-light: #675170;
$custom-dark: #000000;
JSON
{
  "hex": "#2c123a",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 279,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24281,
    "c": 0.07769,
    "h": 312
  },
  "luminance": 0.01274
}

Semantic roles & 50–950 ramp

primary
#2C123A
secondary
#4B7335
accent
#DC4C7E
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2C123A

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

Preview Lab → · Contrast checker → · Palette generator →

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