#120C48#120C48

#120C48 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.5% C 0.105 H 277.4°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#120C48
RGBrgb(18, 12, 72)
HSLhsl(246, 71%, 16%)
HSVhsv(246, 83%, 28%)
CMYKcmyk(75%, 83.3%, 0%, 71.8%)
CIE-LABlab(7.76, 24.38, -36.03)
CIE-LCHlch(7.76, 43.50, 304.08°)
OKLaboklab(21.54% 0.0135 -0.1041)
OKLCHoklch(21.54% 0.105 277.4)
XYZxyz(1.5502, 0.8593, 6.2138)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C48 #42480C
analogous
#0C2448 #120C48 #300C48
triadic
#120C48 #48120C #0C4812
tetradic
#120C48 #480C24 #42480C #0C4830
square
#120C48 #480C24 #42480C #0C4830
split-complementary
#120C48 #48300C #24480C
monochromatic
#07041A #07041A #120C48 #1F157C #2C1DB1

Accessibility & contrast

On white

17.92
#120C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C48
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C48#FFFFFF#000000##FFFFFF
##120C481.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00194A
Deuteranopia (green-blind)
#001447
Tritanopia (blue-blind)
#001D29
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #120c48;
/* rgb */ color: rgb(18, 12, 72);
/* oklch */ color: oklch(21.5% 0.105 277.4);
Tailwind
colors: {
  custom: {
    50: '#5a4c7c',
    500: '#120c48',
    950: '#000000',
  },
}
SCSS
$custom: #120c48;
$custom-light: #5a4c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#120c48",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 246,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.21544,
    "c": 0.10498,
    "h": 277.4
  },
  "luminance": 0.00859
}

Semantic roles & 50–950 ramp

primary
#120C48
secondary
#7B842C
accent
#EE3ADC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #120C48

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

Preview Lab → · Contrast checker → · Palette generator →

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