#120942#120942

#120942 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.3% C 0.100 H 280.0°. Best body text is #FFFFFF at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#120942
RGBrgb(18, 9, 66)
HSLhsl(249, 76%, 15%)
HSVhsv(249, 86%, 26%)
CMYKcmyk(72.7%, 86.4%, 0%, 74.1%)
CIE-LABlab(6.48, 23.60, -33.91)
CIE-LCHlch(6.48, 41.31, 304.84°)
OKLaboklab(20.35% 0.0173 -0.0984)
OKLCHoklch(20.35% 0.1 280)
XYZxyz(1.3302, 0.7172, 5.2215)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120942 #394209
analogous
#091C42 #120942 #2F0942
triadic
#120942 #421209 #094212
tetradic
#120942 #42091C #394209 #09422F
square
#120942 #42091C #394209 #09422F
split-complementary
#120942 #422F09 #1C4209
monochromatic
#07041B #07041B #120942 #211078 #2F18AE

Accessibility & contrast

On white

18.37
#120942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#120942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120942
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120942#FFFFFF#000000##FFFFFF
##1209421.0018.371.1418.37
#FFFFFF18.371.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001644
Deuteranopia (green-blind)
#001241
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #120942;
/* rgb */ color: rgb(18, 9, 66);
/* oklch */ color: oklch(20.3% 0.100 280.0);
Tailwind
colors: {
  custom: {
    50: '#584a77',
    500: '#120942',
    950: '#000000',
  },
}
SCSS
$custom: #120942;
$custom-light: #584a77;
$custom-dark: #000000;
JSON
{
  "hex": "#120942",
  "rgb": {
    "r": 18,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 249.474,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20349,
    "c": 0.09991,
    "h": 280
  },
  "luminance": 0.00717
}

Semantic roles & 50–950 ramp

primary
#120942
secondary
#728027
accent
#F335D5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #120942

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

Preview Lab → · Contrast checker → · Palette generator →

#120942 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva