#120C22#120C22

#120C22 is a very dark, muted violet. Relative luminance 0.005; OKLCH L 17.6% C 0.044 H 293.9°. Best body text is #FFFFFF at 19.07:1 contrast (WCAG AA passes).

Color values

HEX#120C22
RGBrgb(18, 12, 34)
HSLhsl(256, 48%, 9%)
HSVhsv(256, 65%, 13%)
CMYKcmyk(47.1%, 64.7%, 0%, 86.7%)
CIE-LABlab(4.58, 7.69, -13.26)
CIE-LCHlch(4.58, 15.32, 300.12°)
OKLaboklab(17.59% 0.018 -0.0406)
OKLCHoklch(17.59% 0.044 293.9)
XYZxyz(0.6696, 0.5070, 1.5757)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C22 #1C220C
analogous
#0C1122 #120C22 #1D0C22
triadic
#120C22 #22120C #0C2212
tetradic
#120C22 #220C11 #1C220C #0C221D
square
#120C22 #220C11 #1C220C #0C221D
split-complementary
#120C22 #221D0C #11220C
monochromatic
#0C0817 #0C0817 #120C22 #2A1C4F #422C7C

Accessibility & contrast

On white

19.07
#120C22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#120C22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120C22
19.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C22#FFFFFF#000000##FFFFFF
##120C221.0019.071.1019.07
#FFFFFF19.071.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051023
Deuteranopia (green-blind)
#060F21
Tritanopia (blue-blind)
#0E1015
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #120c22;
/* rgb */ color: rgb(18, 12, 34);
/* oklch */ color: oklch(17.6% 0.044 293.9);
Tailwind
colors: {
  custom: {
    50: '#504c5d',
    500: '#120c22',
    950: '#000000',
  },
}
SCSS
$custom: #120c22;
$custom-light: #504c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#120c22",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 34
  },
  "hsl": {
    "h": 256.364,
    "s": 47.826,
    "l": 9.02
  },
  "oklch": {
    "l": 0.17585,
    "c": 0.04441,
    "h": 293.9
  },
  "luminance": 0.00507
}

Semantic roles & 50–950 ramp

primary
#120C22
secondary
#4F5C2E
accent
#D750B3
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020104
muted
#787779

Preview Lab

Preview with #120C22

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

Preview Lab → · Contrast checker → · Palette generator →

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