#120C42#120C42

#120C42 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.8% C 0.096 H 279.0°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#120C42
RGBrgb(18, 12, 66)
HSLhsl(247, 69%, 15%)
HSVhsv(247, 82%, 26%)
CMYKcmyk(72.7%, 81.8%, 0%, 74.1%)
CIE-LABlab(7.09, 21.98, -32.91)
CIE-LCHlch(7.09, 39.57, 303.75°)
OKLaboklab(20.83% 0.015 -0.0952)
OKLCHoklch(20.83% 0.096 279)
XYZxyz(1.3640, 0.7848, 5.2328)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C42 #3C420C
analogous
#0C2142 #120C42 #2D0C42
triadic
#120C42 #42120C #0C4212
tetradic
#120C42 #420C21 #3C420C #0C422D
square
#120C42 #420C21 #3C420C #0C422D
split-complementary
#120C42 #422D0C #21420C
monochromatic
#07051A #07051A #120C42 #201576 #2E1FAA

Accessibility & contrast

On white

18.15
#120C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#120C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120C42
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C42#FFFFFF#000000##FFFFFF
##120C421.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001341
Tritanopia (blue-blind)
#001B26
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #120c42;
/* rgb */ color: rgb(18, 12, 66);
/* oklch */ color: oklch(20.8% 0.096 279.0);
Tailwind
colors: {
  custom: {
    50: '#584b77',
    500: '#120c42',
    950: '#000000',
  },
}
SCSS
$custom: #120c42;
$custom-light: #584b77;
$custom-dark: #000000;
JSON
{
  "hex": "#120c42",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 246.667,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.2083,
    "c": 0.09633,
    "h": 279
  },
  "luminance": 0.00785
}

Semantic roles & 50–950 ramp

primary
#120C42
secondary
#757E2C
accent
#EC3CD8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #120C42

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

Preview Lab → · Contrast checker → · Palette generator →

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