#120F56#120F56

#120F56 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.7% C 0.121 H 273.9°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#120F56
RGBrgb(18, 15, 86)
HSLhsl(243, 70%, 20%)
HSVhsv(243, 83%, 34%)
CMYKcmyk(79.1%, 82.6%, 0%, 66.3%)
CIE-LABlab(10.12, 27.70, -41.80)
CIE-LCHlch(10.12, 50.14, 303.53°)
OKLaboklab(23.72% 0.0082 -0.1209)
OKLCHoklch(23.72% 0.121 273.9)
XYZxyz(2.0994, 1.1419, 8.9121)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F56 #53560F
analogous
#0F3056 #120F56 #350F56
triadic
#120F56 #56120F #0F5612
tetradic
#120F56 #560F30 #53560F #0F5635
square
#120F56 #560F30 #53560F #0F5635
split-complementary
#120F56 #56350F #30560F
monochromatic
#05051A #070622 #120F56 #1D188A #2821BE

Accessibility & contrast

On white

17.10
#120F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#120F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F56
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F56#FFFFFF#000000##FFFFFF
##120F561.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F58
Deuteranopia (green-blind)
#001855
Tritanopia (blue-blind)
#002432
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #120f56;
/* rgb */ color: rgb(18, 15, 86);
/* oklch */ color: oklch(23.7% 0.121 273.9);
Tailwind
colors: {
  custom: {
    50: '#5d4e87',
    500: '#120f56',
    950: '#000000',
  },
}
SCSS
$custom: #120f56;
$custom-light: #5d4e87;
$custom-dark: #000000;
JSON
{
  "hex": "#120f56",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 242.535,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.23715,
    "c": 0.1212,
    "h": 273.9
  },
  "luminance": 0.01142
}

Semantic roles & 50–950 ramp

primary
#120F56
secondary
#8C9031
accent
#ED3BE6
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #120F56

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

Preview Lab → · Contrast checker → · Palette generator →

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