#120C2C#120C2C

#120C2C is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.5% C 0.062 H 287.4°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#120C2C
RGBrgb(18, 12, 44)
HSLhsl(251, 57%, 11%)
HSVhsv(251, 73%, 17%)
CMYKcmyk(59.1%, 72.7%, 0%, 82.7%)
CIE-LABlab(5.18, 11.90, -19.94)
CIE-LCHlch(5.18, 23.22, 300.82°)
OKLaboklab(18.47% 0.0185 -0.059)
OKLCHoklch(18.47% 0.062 287.4)
XYZxyz(0.8354, 0.5734, 2.4490)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C2C #262C0C
analogous
#0C162C #120C2C #220C2C
triadic
#120C2C #2C120C #0C2C12
tetradic
#120C2C #2C0C16 #262C0C #0C2C22
square
#120C2C #2C0C16 #262C0C #0C2C22
split-complementary
#120C2C #2C220C #162C0C
monochromatic
#0A0718 #0A0718 #120C2C #26195C #39268C

Accessibility & contrast

On white

18.84
#120C2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#120C2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120C2C
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C2C#FFFFFF#000000##FFFFFF
##120C2C1.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#00102B
Tritanopia (blue-blind)
#09131A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #120c2c;
/* rgb */ color: rgb(18, 12, 44);
/* oklch */ color: oklch(18.5% 0.062 287.4);
Tailwind
colors: {
  custom: {
    50: '#514c65',
    500: '#120c2c',
    950: '#000000',
  },
}
SCSS
$custom: #120c2c;
$custom-light: #514c65;
$custom-dark: #000000;
JSON
{
  "hex": "#120c2c",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 44
  },
  "hsl": {
    "h": 251.25,
    "s": 57.143,
    "l": 10.98
  },
  "oklch": {
    "l": 0.1847,
    "c": 0.06187,
    "h": 287.4
  },
  "luminance": 0.00573
}

Semantic roles & 50–950 ramp

primary
#120C2C
secondary
#5C672C
accent
#E047C4
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #120C2C

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

Preview Lab → · Contrast checker → · Palette generator →

#120C2C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva