#120F42#120F42

#120F42 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.092 H 277.7°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#120F42
RGBrgb(18, 15, 66)
HSLhsl(244, 63%, 16%)
HSVhsv(244, 77%, 26%)
CMYKcmyk(72.7%, 77.3%, 0%, 74.1%)
CIE-LABlab(7.80, 20.08, -31.74)
CIE-LCHlch(7.80, 37.56, 302.31°)
OKLaboklab(21.36% 0.0125 -0.0916)
OKLCHoklch(21.36% 0.092 277.7)
XYZxyz(1.4033, 0.8635, 5.2459)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F42 #3F420F
analogous
#0F2542 #120F42 #2B0F42
triadic
#120F42 #42120F #0F4212
tetradic
#120F42 #420F25 #3F420F #0F422B
square
#120F42 #420F25 #3F420F #0F422B
split-complementary
#120F42 #422B0F #25420F
monochromatic
#070619 #070619 #120F42 #201A74 #2D26A6

Accessibility & contrast

On white

17.91
#120F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120F42
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F42#FFFFFF#000000##FFFFFF
##120F421.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#001D27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #120f42;
/* rgb */ color: rgb(18, 15, 66);
/* oklch */ color: oklch(21.4% 0.092 277.7);
Tailwind
colors: {
  custom: {
    50: '#584d77',
    500: '#120f42',
    950: '#000000',
  },
}
SCSS
$custom: #120f42;
$custom-light: #584d77;
$custom-dark: #000000;
JSON
{
  "hex": "#120f42",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 243.529,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21364,
    "c": 0.09243,
    "h": 277.7
  },
  "luminance": 0.00864
}

Semantic roles & 50–950 ramp

primary
#120F42
secondary
#787C30
accent
#E642DC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #120F42

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

Preview Lab → · Contrast checker → · Palette generator →

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