#120C49#120C49

#120C49 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.7% C 0.106 H 277.1°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#120C49
RGBrgb(18, 12, 73)
HSLhsl(246, 72%, 17%)
HSVhsv(246, 84%, 29%)
CMYKcmyk(75.3%, 83.6%, 0%, 71.4%)
CIE-LABlab(7.88, 24.76, -36.54)
CIE-LCHlch(7.88, 44.14, 304.12°)
OKLaboklab(21.67% 0.0132 -0.1056)
OKLCHoklch(21.67% 0.106 277.1)
XYZxyz(1.5831, 0.8724, 6.3870)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C49 #43490C
analogous
#0C2549 #120C49 #310C49
triadic
#120C49 #49120C #0C4912
tetradic
#120C49 #490C25 #43490C #0C4931
square
#120C49 #490C25 #43490C #0C4931
split-complementary
#120C49 #49310C #25490C
monochromatic
#06041A #06041A #120C49 #1F157E #2C1DB2

Accessibility & contrast

On white

17.88
#120C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#120C49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120C49
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C49#FFFFFF#000000##FFFFFF
##120C491.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4B
Deuteranopia (green-blind)
#001548
Tritanopia (blue-blind)
#001E2A
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #120c49;
/* rgb */ color: rgb(18, 12, 73);
/* oklch */ color: oklch(21.7% 0.106 277.1);
Tailwind
colors: {
  custom: {
    50: '#5a4c7d',
    500: '#120c49',
    950: '#000000',
  },
}
SCSS
$custom: #120c49;
$custom-light: #5a4c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#120c49",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 73
  },
  "hsl": {
    "h": 245.902,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.21665,
    "c": 0.10639,
    "h": 277.1
  },
  "luminance": 0.00873
}

Semantic roles & 50–950 ramp

primary
#120C49
secondary
#7C852C
accent
#EE39DD
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120C49

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

Preview Lab → · Contrast checker → · Palette generator →

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