#120A42#120A42

#120A42 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.5% C 0.099 H 279.6°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#120A42
RGBrgb(18, 10, 66)
HSLhsl(249, 74%, 15%)
HSVhsv(249, 85%, 26%)
CMYKcmyk(72.7%, 84.8%, 0%, 74.1%)
CIE-LABlab(6.67, 23.09, -33.59)
CIE-LCHlch(6.67, 40.76, 304.50°)
OKLaboklab(20.51% 0.0165 -0.0974)
OKLCHoklch(20.51% 0.099 279.6)
XYZxyz(1.3411, 0.7389, 5.2252)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120A42 #3A420A
analogous
#0A1E42 #120A42 #2E0A42
triadic
#120A42 #42120A #0A4212
tetradic
#120A42 #420A1E #3A420A #0A422E
square
#120A42 #420A1E #3A420A #0A422E
split-complementary
#120A42 #422E0A #1E420A
monochromatic
#07041B #07041B #120A42 #201277 #2F1AAC

Accessibility & contrast

On white

18.30
#120A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#120A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120A42
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120A42#FFFFFF#000000##FFFFFF
##120A421.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001341
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #120a42;
/* rgb */ color: rgb(18, 10, 66);
/* oklch */ color: oklch(20.5% 0.099 279.6);
Tailwind
colors: {
  custom: {
    50: '#584a77',
    500: '#120a42',
    950: '#000000',
  },
}
SCSS
$custom: #120a42;
$custom-light: #584a77;
$custom-dark: #000000;
JSON
{
  "hex": "#120a42",
  "rgb": {
    "r": 18,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 248.571,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.20506,
    "c": 0.09874,
    "h": 279.6
  },
  "luminance": 0.00739
}

Semantic roles & 50–950 ramp

primary
#120A42
secondary
#737F29
accent
#F037D6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #120A42

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

Preview Lab → · Contrast checker → · Palette generator →

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