#120C2F#120C2F

#120C2F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.067 H 285.9°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#120C2F
RGBrgb(18, 12, 47)
HSLhsl(250, 59%, 12%)
HSVhsv(250, 74%, 18%)
CMYKcmyk(61.7%, 74.5%, 0%, 81.6%)
CIE-LABlab(5.39, 13.34, -21.85)
CIE-LCHlch(5.39, 25.60, 301.41°)
OKLaboklab(18.76% 0.0183 -0.0643)
OKLCHoklch(18.76% 0.067 285.9)
XYZxyz(0.8939, 0.5967, 2.7569)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C2F #292F0C
analogous
#0C182F #120C2F #240C2F
triadic
#120C2F #2F120C #0C2F12
tetradic
#120C2F #2F0C18 #292F0C #0C2F24
square
#120C2F #2F0C18 #292F0C #0C2F24
split-complementary
#120C2F #2F240C #182F0C
monochromatic
#090618 #090618 #120C2F #251860 #372591

Accessibility & contrast

On white

18.76
#120C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#120C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120C2F
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C2F#FFFFFF#000000##FFFFFF
##120C2F1.0018.761.1218.76
#FFFFFF18.761.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#07141B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #120c2f;
/* rgb */ color: rgb(18, 12, 47);
/* oklch */ color: oklch(18.8% 0.067 285.9);
Tailwind
colors: {
  custom: {
    50: '#524c68',
    500: '#120c2f',
    950: '#000000',
  },
}
SCSS
$custom: #120c2f;
$custom-light: #524c68;
$custom-dark: #000000;
JSON
{
  "hex": "#120c2f",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 250.286,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18762,
    "c": 0.06686,
    "h": 285.9
  },
  "luminance": 0.00597
}

Semantic roles & 50–950 ramp

primary
#120C2F
secondary
#606B2C
accent
#E345C8
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #120C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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