#120C4C#120C4C

#120C4C is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.0% C 0.111 H 276.4°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#120C4C
RGBrgb(18, 12, 76)
HSLhsl(246, 73%, 17%)
HSVhsv(246, 84%, 30%)
CMYKcmyk(76.3%, 84.2%, 0%, 70.2%)
CIE-LABlab(8.25, 25.86, -38.02)
CIE-LCHlch(8.25, 45.99, 304.22°)
OKLaboklab(22.03% 0.0124 -0.1099)
OKLCHoklch(22.03% 0.111 276.4)
XYZxyz(1.6850, 0.9132, 6.9235)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C4C #464C0C
analogous
#0C264C #120C4C #320C4C
triadic
#120C4C #4C120C #0C4C12
tetradic
#120C4C #4C0C26 #464C0C #0C4C32
square
#120C4C #4C0C26 #464C0C #0C4C32
split-complementary
#120C4C #4C320C #264C0C
monochromatic
#06041A #06041A #120C4C #1F1481 #2B1DB6

Accessibility & contrast

On white

17.76
#120C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C4C
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C4C#FFFFFF#000000##FFFFFF
##120C4C1.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4E
Deuteranopia (green-blind)
#00154B
Tritanopia (blue-blind)
#001F2B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #120c4c;
/* rgb */ color: rgb(18, 12, 76);
/* oklch */ color: oklch(22.0% 0.111 276.4);
Tailwind
colors: {
  custom: {
    50: '#5b4c7f',
    500: '#120c4c',
    950: '#000000',
  },
}
SCSS
$custom: #120c4c;
$custom-light: #5b4c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#120c4c",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 245.625,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22031,
    "c": 0.1106,
    "h": 276.4
  },
  "luminance": 0.00913
}

Semantic roles & 50–950 ramp

primary
#120C4C
secondary
#7F882C
accent
#EF38DE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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