#120D4F#120D4F

#120D4F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.6% C 0.114 H 275.6°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#120D4F
RGBrgb(18, 13, 79)
HSLhsl(245, 72%, 18%)
HSVhsv(245, 84%, 31%)
CMYKcmyk(77.2%, 83.5%, 0%, 69%)
CIE-LABlab(8.83, 26.35, -39.14)
CIE-LCHlch(8.83, 47.18, 303.95°)
OKLaboklab(22.55% 0.011 -0.1131)
OKLCHoklch(22.55% 0.114 275.6)
XYZxyz(1.8042, 0.9808, 7.4898)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D4F #4A4F0D
analogous
#0D294F #120D4F #330D4F
triadic
#120D4F #4F120D #0D4F12
tetradic
#120D4F #4F0D29 #4A4F0D #0D4F33
square
#120D4F #4F0D29 #4A4F0D #0D4F33
split-complementary
#120D4F #4F330D #294F0D
monochromatic
#06041A #06041A #120D4F #1E1684 #2A1EB8

Accessibility & contrast

On white

17.56
#120D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#120D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120D4F
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D4F#FFFFFF#000000##FFFFFF
##120D4F1.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C51
Deuteranopia (green-blind)
#00164E
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #120d4f;
/* rgb */ color: rgb(18, 13, 79);
/* oklch */ color: oklch(22.6% 0.114 275.6);
Tailwind
colors: {
  custom: {
    50: '#5b4d81',
    500: '#120d4f',
    950: '#000000',
  },
}
SCSS
$custom: #120d4f;
$custom-light: #5b4d81;
$custom-dark: #000000;
JSON
{
  "hex": "#120d4f",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 244.545,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.22551,
    "c": 0.11369,
    "h": 275.6
  },
  "luminance": 0.00981
}

Semantic roles & 50–950 ramp

primary
#120D4F
secondary
#838A2E
accent
#EE39E1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010A
muted
#79777C

Preview Lab

Preview with #120D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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