#120E51#120E51

#120E51 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.9% C 0.115 H 275.0°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#120E51
RGBrgb(18, 14, 81)
HSLhsl(244, 71%, 19%)
HSVhsv(244, 83%, 32%)
CMYKcmyk(77.8%, 82.7%, 0%, 68.2%)
CIE-LABlab(9.29, 26.47, -39.75)
CIE-LCHlch(9.29, 47.76, 303.66°)
OKLaboklab(22.95% 0.01 -0.1149)
OKLCHoklch(22.95% 0.115 275)
XYZxyz(1.8912, 1.0366, 7.8834)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120E51 #4D510E
analogous
#0E2B51 #120E51 #330E51
triadic
#120E51 #51120E #0E5112
tetradic
#120E51 #510E2B #4D510E #0E5133
square
#120E51 #510E2B #4D510E #0E5133
split-complementary
#120E51 #51330E #2B510E
monochromatic
#06051A #06051D #120E51 #1E1785 #2920B9

Accessibility & contrast

On white

17.39
#120E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120E51
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120E51#FFFFFF#000000##FFFFFF
##120E511.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D53
Deuteranopia (green-blind)
#001750
Tritanopia (blue-blind)
#00222F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #120e51;
/* rgb */ color: rgb(18, 14, 81);
/* oklch */ color: oklch(22.9% 0.115 275.0);
Tailwind
colors: {
  custom: {
    50: '#5c4d83',
    500: '#120e51',
    950: '#000000',
  },
}
SCSS
$custom: #120e51;
$custom-light: #5c4d83;
$custom-dark: #000000;
JSON
{
  "hex": "#120e51",
  "rgb": {
    "r": 18,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 243.582,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.22949,
    "c": 0.11538,
    "h": 275
  },
  "luminance": 0.01037
}

Semantic roles & 50–950 ramp

primary
#120E51
secondary
#868C2F
accent
#ED3AE3
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #120E51

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

Preview Lab → · Contrast checker → · Palette generator →

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