#120C46#120C46

#120C46 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.3% C 0.102 H 277.9°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#120C46
RGBrgb(18, 12, 70)
HSLhsl(246, 71%, 16%)
HSVhsv(246, 83%, 27%)
CMYKcmyk(74.3%, 82.9%, 0%, 72.5%)
CIE-LABlab(7.53, 23.61, -35.01)
CIE-LCHlch(7.53, 42.22, 303.99°)
OKLaboklab(21.3% 0.014 -0.1012)
OKLCHoklch(21.3% 0.102 277.9)
XYZxyz(1.4861, 0.8336, 5.8758)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C46 #40460C
analogous
#0C2346 #120C46 #2F0C46
triadic
#120C46 #46120C #0C4612
tetradic
#120C46 #460C23 #40460C #0C462F
square
#120C46 #460C23 #40460C #0C462F
split-complementary
#120C46 #462F0C #23460C
monochromatic
#07041A #07041A #120C46 #1F157A #2D1EAE

Accessibility & contrast

On white

18.00
#120C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C46
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C46#FFFFFF#000000##FFFFFF
##120C461.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001445
Tritanopia (blue-blind)
#001D28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #120c46;
/* rgb */ color: rgb(18, 12, 70);
/* oklch */ color: oklch(21.3% 0.102 277.9);
Tailwind
colors: {
  custom: {
    50: '#594c7a',
    500: '#120c46',
    950: '#000000',
  },
}
SCSS
$custom: #120c46;
$custom-light: #594c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#120c46",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 246.207,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.21303,
    "c": 0.10213,
    "h": 277.9
  },
  "luminance": 0.00834
}

Semantic roles & 50–950 ramp

primary
#120C46
secondary
#79822C
accent
#ED3ADB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #120C46

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

Preview Lab → · Contrast checker → · Palette generator →

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