#120C47#120C47

#120C47 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.4% C 0.104 H 277.6°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#120C47
RGBrgb(18, 12, 71)
HSLhsl(246, 71%, 16%)
HSVhsv(246, 83%, 28%)
CMYKcmyk(74.6%, 83.1%, 0%, 72.2%)
CIE-LABlab(7.64, 24.00, -35.52)
CIE-LCHlch(7.64, 42.87, 304.04°)
OKLaboklab(21.42% 0.0138 -0.1026)
OKLCHoklch(21.42% 0.104 277.6)
XYZxyz(1.5179, 0.8463, 6.0434)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C47 #41470C
analogous
#0C2447 #120C47 #300C47
triadic
#120C47 #47120C #0C4712
tetradic
#120C47 #470C24 #41470C #0C4730
square
#120C47 #470C24 #41470C #0C4730
split-complementary
#120C47 #47300C #24470C
monochromatic
#07041A #07041A #120C47 #1F157B #2D1EB0

Accessibility & contrast

On white

17.96
#120C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C47
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C47#FFFFFF#000000##FFFFFF
##120C471.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001949
Deuteranopia (green-blind)
#001446
Tritanopia (blue-blind)
#001D29
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #120c47;
/* rgb */ color: rgb(18, 12, 71);
/* oklch */ color: oklch(21.4% 0.104 277.6);
Tailwind
colors: {
  custom: {
    50: '#594c7b',
    500: '#120c47',
    950: '#000000',
  },
}
SCSS
$custom: #120c47;
$custom-light: #594c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#120c47",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 246.102,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.21423,
    "c": 0.10356,
    "h": 277.6
  },
  "luminance": 0.00846
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #120C47

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

Preview Lab → · Contrast checker → · Palette generator →

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