#120C4A#120C4A

#120C4A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.8% C 0.108 H 276.9°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#120C4A
RGBrgb(18, 12, 74)
HSLhsl(246, 72%, 17%)
HSVhsv(246, 84%, 29%)
CMYKcmyk(75.7%, 83.8%, 0%, 71%)
CIE-LABlab(8.00, 25.13, -37.04)
CIE-LCHlch(8.00, 44.76, 304.16°)
OKLaboklab(21.79% 0.013 -0.107)
OKLCHoklch(21.79% 0.108 276.9)
XYZxyz(1.6166, 0.8858, 6.5630)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C4A #444A0C
analogous
#0C254A #120C4A #310C4A
triadic
#120C4A #4A120C #0C4A12
tetradic
#120C4A #4A0C25 #444A0C #0C4A31
square
#120C4A #4A0C25 #444A0C #0C4A31
split-complementary
#120C4A #4A310C #254A0C
monochromatic
#06041A #06041A #120C4A #1F157F #2C1DB3

Accessibility & contrast

On white

17.84
#120C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#120C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120C4A
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C4A#FFFFFF#000000##FFFFFF
##120C4A1.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4C
Deuteranopia (green-blind)
#001549
Tritanopia (blue-blind)
#001E2A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #120c4a;
/* rgb */ color: rgb(18, 12, 74);
/* oklch */ color: oklch(21.8% 0.108 276.9);
Tailwind
colors: {
  custom: {
    50: '#5a4c7d',
    500: '#120c4a',
    950: '#000000',
  },
}
SCSS
$custom: #120c4a;
$custom-light: #5a4c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#120c4a",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 245.806,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.21786,
    "c": 0.1078,
    "h": 276.9
  },
  "luminance": 0.00886
}

Semantic roles & 50–950 ramp

primary
#120C4A
secondary
#7D862C
accent
#EF39DD
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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