#120C44#120C44

#120C44 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.1% C 0.099 H 278.4°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#120C44
RGBrgb(18, 12, 68)
HSLhsl(246, 70%, 16%)
HSVhsv(246, 82%, 27%)
CMYKcmyk(73.5%, 82.4%, 0%, 73.3%)
CIE-LABlab(7.31, 22.81, -33.97)
CIE-LCHlch(7.31, 40.91, 303.88°)
OKLaboklab(21.07% 0.0145 -0.0982)
OKLCHoklch(21.07% 0.099 278.4)
XYZxyz(1.4240, 0.8088, 5.5488)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C44 #3E440C
analogous
#0C2244 #120C44 #2E0C44
triadic
#120C44 #44120C #0C4412
tetradic
#120C44 #440C22 #3E440C #0C442E
square
#120C44 #440C22 #3E440C #0C442E
split-complementary
#120C44 #442E0C #22440C
monochromatic
#07051A #07051A #120C44 #201578 #2E1EAC

Accessibility & contrast

On white

18.08
#120C44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C44
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C44#FFFFFF#000000##FFFFFF
##120C441.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001846
Deuteranopia (green-blind)
#001443
Tritanopia (blue-blind)
#001C27
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #120c44;
/* rgb */ color: rgb(18, 12, 68);
/* oklch */ color: oklch(21.1% 0.099 278.4);
Tailwind
colors: {
  custom: {
    50: '#584b79',
    500: '#120c44',
    950: '#000000',
  },
}
SCSS
$custom: #120c44;
$custom-light: #584b79;
$custom-dark: #000000;
JSON
{
  "hex": "#120c44",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 68
  },
  "hsl": {
    "h": 246.429,
    "s": 70,
    "l": 15.686
  },
  "oklch": {
    "l": 0.21065,
    "c": 0.09925,
    "h": 278.4
  },
  "luminance": 0.00809
}

Semantic roles & 50–950 ramp

primary
#120C44
secondary
#77802C
accent
#ED3BDA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #120C44

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

Preview Lab → · Contrast checker → · Palette generator →

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