#120C57#120C57

#120C57 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.4% C 0.126 H 274.3°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#120C57
RGBrgb(18, 12, 87)
HSLhsl(245, 76%, 19%)
HSVhsv(245, 86%, 34%)
CMYKcmyk(79.3%, 86.2%, 0%, 65.9%)
CIE-LABlab(9.64, 29.81, -43.28)
CIE-LCHlch(9.64, 52.56, 304.56°)
OKLaboklab(23.41% 0.0093 -0.1252)
OKLCHoklch(23.41% 0.126 274.3)
XYZxyz(2.1007, 1.0795, 9.1126)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C57 #51570C
analogous
#0C2C57 #120C57 #380C57
triadic
#120C57 #57120C #0C5712
tetradic
#120C57 #570C2C #51570C #0C5738
square
#120C57 #570C2C #51570C #0C5738
split-complementary
#120C57 #57380C #2C570C
monochromatic
#06041B #070521 #120C57 #1D138D #281BC3

Accessibility & contrast

On white

17.27
#120C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#120C57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120C57
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C57#FFFFFF#000000##FFFFFF
##120C571.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E59
Deuteranopia (green-blind)
#001756
Tritanopia (blue-blind)
#002332
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #120c57;
/* rgb */ color: rgb(18, 12, 87);
/* oklch */ color: oklch(23.4% 0.126 274.3);
Tailwind
colors: {
  custom: {
    50: '#5e4d87',
    500: '#120c57',
    950: '#000000',
  },
}
SCSS
$custom: #120c57;
$custom-light: #5e4d87;
$custom-dark: #000000;
JSON
{
  "hex": "#120c57",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 87
  },
  "hsl": {
    "h": 244.8,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.23412,
    "c": 0.12554,
    "h": 274.3
  },
  "luminance": 0.0108
}

Semantic roles & 50–950 ramp

primary
#120C57
secondary
#8A922D
accent
#F235E3
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05010B
muted
#79777C

Preview Lab

Preview with #120C57

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

Preview Lab → · Contrast checker → · Palette generator →

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