#120A2C#120A2C

#120A2C is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.1% C 0.065 H 289.0°. Best body text is #FFFFFF at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#120A2C
RGBrgb(18, 10, 44)
HSLhsl(254, 63%, 11%)
HSVhsv(254, 77%, 17%)
CMYKcmyk(59.1%, 77.3%, 0%, 82.7%)
CIE-LABlab(4.76, 12.74, -20.60)
CIE-LCHlch(4.76, 24.22, 301.75°)
OKLaboklab(18.05% 0.0212 -0.0618)
OKLCHoklch(18.05% 0.065 289)
XYZxyz(0.8125, 0.5275, 2.4414)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120A2C #242C0A
analogous
#0A132C #120A2C #230A2C
triadic
#120A2C #2C120A #0A2C12
tetradic
#120A2C #2C0A13 #242C0A #0A2C23
square
#120A2C #2C0A13 #242C0A #0A2C23
split-complementary
#120A2C #2C230A #132C0A
monochromatic
#0A0619 #0A0619 #120A2C #26155E #3B2190

Accessibility & contrast

On white

18.99
#120A2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120A2C
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120A2C#FFFFFF#000000##FFFFFF
##120A2C1.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112D
Deuteranopia (green-blind)
#000F2B
Tritanopia (blue-blind)
#091219
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #120a2c;
/* rgb */ color: rgb(18, 10, 44);
/* oklch */ color: oklch(18.1% 0.065 289.0);
Tailwind
colors: {
  custom: {
    50: '#514b65',
    500: '#120a2c',
    950: '#000000',
  },
}
SCSS
$custom: #120a2c;
$custom-light: #514b65;
$custom-dark: #000000;
JSON
{
  "hex": "#120a2c",
  "rgb": {
    "r": 18,
    "g": 10,
    "b": 44
  },
  "hsl": {
    "h": 254.118,
    "s": 62.963,
    "l": 10.588
  },
  "oklch": {
    "l": 0.18054,
    "c": 0.06532,
    "h": 289
  },
  "luminance": 0.00528
}

Semantic roles & 50–950 ramp

primary
#120A2C
secondary
#5A6929
accent
#E642BF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #120A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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