#120C2E#120C2E

#120C2E is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.7% C 0.065 H 286.3°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#120C2E
RGBrgb(18, 12, 46)
HSLhsl(251, 59%, 11%)
HSVhsv(251, 74%, 18%)
CMYKcmyk(60.9%, 73.9%, 0%, 82%)
CIE-LABlab(5.32, 12.86, -21.22)
CIE-LCHlch(5.32, 24.81, 301.22°)
OKLaboklab(18.66% 0.0183 -0.0626)
OKLCHoklch(18.66% 0.065 286.3)
XYZxyz(0.8739, 0.5888, 2.6518)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C2E #282E0C
analogous
#0C172E #120C2E #230C2E
triadic
#120C2E #2E120C #0C2E12
tetradic
#120C2E #2E0C17 #282E0C #0C2E23
square
#120C2E #2E0C17 #282E0C #0C2E23
split-complementary
#120C2E #2E230C #172E0C
monochromatic
#090618 #090618 #120C2E #25195F #38258F

Accessibility & contrast

On white

18.79
#120C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C2E
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C2E#FFFFFF#000000##FFFFFF
##120C2E1.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#00112D
Tritanopia (blue-blind)
#08141B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #120c2e;
/* rgb */ color: rgb(18, 12, 46);
/* oklch */ color: oklch(18.7% 0.065 286.3);
Tailwind
colors: {
  custom: {
    50: '#524c67',
    500: '#120c2e',
    950: '#000000',
  },
}
SCSS
$custom: #120c2e;
$custom-light: #524c67;
$custom-dark: #000000;
JSON
{
  "hex": "#120c2e",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 46
  },
  "hsl": {
    "h": 250.588,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.18663,
    "c": 0.06521,
    "h": 286.3
  },
  "luminance": 0.00589
}

Semantic roles & 50–950 ramp

primary
#120C2E
secondary
#5F6A2C
accent
#E246C6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #120C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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