#120C56#120C56

#120C56 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.3% C 0.124 H 274.4°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#120C56
RGBrgb(18, 12, 86)
HSLhsl(245, 76%, 19%)
HSVhsv(245, 86%, 34%)
CMYKcmyk(79.1%, 86%, 0%, 66.3%)
CIE-LABlab(9.51, 29.46, -42.82)
CIE-LCHlch(9.51, 51.97, 304.53°)
OKLaboklab(23.29% 0.0096 -0.1238)
OKLCHoklch(23.29% 0.124 274.4)
XYZxyz(2.0601, 1.0632, 8.8989)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C56 #50560C
analogous
#0C2B56 #120C56 #370C56
triadic
#120C56 #56120C #0C5612
tetradic
#120C56 #560C2B #50560C #0C5637
square
#120C56 #560C2B #50560C #0C5637
split-complementary
#120C56 #56370C #2B560C
monochromatic
#06041B #070520 #120C56 #1D138C #281BC1

Accessibility & contrast

On white

17.32
#120C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#120C56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120C56
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C56#FFFFFF#000000##FFFFFF
##120C561.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E58
Deuteranopia (green-blind)
#001755
Tritanopia (blue-blind)
#002331
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #120c56;
/* rgb */ color: rgb(18, 12, 86);
/* oklch */ color: oklch(23.3% 0.124 274.4);
Tailwind
colors: {
  custom: {
    50: '#5e4d87',
    500: '#120c56',
    950: '#000000',
  },
}
SCSS
$custom: #120c56;
$custom-light: #5e4d87;
$custom-dark: #000000;
JSON
{
  "hex": "#120c56",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 86
  },
  "hsl": {
    "h": 244.865,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.23285,
    "c": 0.1242,
    "h": 274.4
  },
  "luminance": 0.01063
}

Semantic roles & 50–950 ramp

primary
#120C56
secondary
#89912D
accent
#F236E3
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #120C56

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

Preview Lab → · Contrast checker → · Palette generator →

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