#120E45#120E45

#120E45 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.5% C 0.098 H 277.4°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#120E45
RGBrgb(18, 14, 69)
HSLhsl(244, 66%, 16%)
HSVhsv(244, 80%, 27%)
CMYKcmyk(73.9%, 79.7%, 0%, 72.9%)
CIE-LABlab(7.88, 21.94, -33.73)
CIE-LCHlch(7.88, 40.24, 303.04°)
OKLaboklab(21.52% 0.0127 -0.0974)
OKLCHoklch(21.52% 0.098 277.4)
XYZxyz(1.4803, 0.8722, 5.7194)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120E45 #41450E
analogous
#0E2645 #120E45 #2E0E45
triadic
#120E45 #45120E #0E4512
tetradic
#120E45 #450E26 #41450E #0E452E
square
#120E45 #450E26 #41450E #0E452E
split-complementary
#120E45 #452E0E #26450E
monochromatic
#070519 #070519 #120E45 #1F1878 #2D23AB

Accessibility & contrast

On white

17.88
#120E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#120E45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120E45
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120E45#FFFFFF#000000##FFFFFF
##120E451.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A47
Deuteranopia (green-blind)
#001544
Tritanopia (blue-blind)
#001D28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #120e45;
/* rgb */ color: rgb(18, 14, 69);
/* oklch */ color: oklch(21.5% 0.098 277.4);
Tailwind
colors: {
  custom: {
    50: '#584d79',
    500: '#120e45',
    950: '#000000',
  },
}
SCSS
$custom: #120e45;
$custom-light: #584d79;
$custom-dark: #000000;
JSON
{
  "hex": "#120e45",
  "rgb": {
    "r": 18,
    "g": 14,
    "b": 69
  },
  "hsl": {
    "h": 244.364,
    "s": 66.265,
    "l": 16.275
  },
  "oklch": {
    "l": 0.21522,
    "c": 0.09823,
    "h": 277.4
  },
  "luminance": 0.00872
}

Semantic roles & 50–950 ramp

primary
#120E45
secondary
#7A802F
accent
#E93FDD
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #120E45

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

Preview Lab → · Contrast checker → · Palette generator →

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