#120C54#120C54

#120C54 is a very dark, vivid blue. Relative luminance 0.010; OKLCH L 23.0% C 0.122 H 274.8°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#120C54
RGBrgb(18, 12, 84)
HSLhsl(245, 75%, 19%)
HSVhsv(245, 86%, 33%)
CMYKcmyk(78.6%, 85.7%, 0%, 67.1%)
CIE-LABlab(9.25, 28.75, -41.88)
CIE-LCHlch(9.25, 50.80, 304.47°)
OKLaboklab(23.03% 0.0102 -0.1211)
OKLCHoklch(23.03% 0.122 274.8)
XYZxyz(1.9806, 1.0314, 8.4805)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C54 #4E540C
analogous
#0C2A54 #120C54 #360C54
triadic
#120C54 #54120C #0C5412
tetradic
#120C54 #540C2A #4E540C #0C5436
square
#120C54 #540C2A #4E540C #0C5436
split-complementary
#120C54 #54360C #2A540C
monochromatic
#06041B #07041E #120C54 #1D148A #291BBF

Accessibility & contrast

On white

17.41
#120C54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C54
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C54#FFFFFF#000000##FFFFFF
##120C541.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D56
Deuteranopia (green-blind)
#001753
Tritanopia (blue-blind)
#002230
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #120c54;
/* rgb */ color: rgb(18, 12, 84);
/* oklch */ color: oklch(23.0% 0.122 274.8);
Tailwind
colors: {
  custom: {
    50: '#5d4d85',
    500: '#120c54',
    950: '#000000',
  },
}
SCSS
$custom: #120c54;
$custom-light: #5d4d85;
$custom-dark: #000000;
JSON
{
  "hex": "#120c54",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 84
  },
  "hsl": {
    "h": 245,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.23031,
    "c": 0.12153,
    "h": 274.8
  },
  "luminance": 0.01032
}

Semantic roles & 50–950 ramp

primary
#120C54
secondary
#878F2D
accent
#F236E2
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #120C54

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

Preview Lab → · Contrast checker → · Palette generator →

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