#120D4A#120D4A

#120D4A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.9% C 0.107 H 276.6°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#120D4A
RGBrgb(18, 13, 74)
HSLhsl(245, 70%, 17%)
HSVhsv(245, 82%, 29%)
CMYKcmyk(75.7%, 82.4%, 0%, 71%)
CIE-LABlab(8.22, 24.50, -36.67)
CIE-LCHlch(8.22, 44.10, 303.75°)
OKLaboklab(21.94% 0.0123 -0.106)
OKLCHoklch(21.94% 0.107 276.6)
XYZxyz(1.6290, 0.9107, 6.5672)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D4A #454A0D
analogous
#0D274A #120D4A #310D4A
triadic
#120D4A #4A120D #0D4A12
tetradic
#120D4A #4A0D27 #454A0D #0D4A31
square
#120D4A #4A0D27 #454A0D #0D4A31
split-complementary
#120D4A #4A310D #274A0D
monochromatic
#06051A #06051A #120D4A #1F167E #2B1FB2

Accessibility & contrast

On white

17.76
#120D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#120D4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120D4A
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D4A#FFFFFF#000000##FFFFFF
##120D4A1.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4C
Deuteranopia (green-blind)
#001549
Tritanopia (blue-blind)
#001F2A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #120d4a;
/* rgb */ color: rgb(18, 13, 74);
/* oklch */ color: oklch(21.9% 0.107 276.6);
Tailwind
colors: {
  custom: {
    50: '#5a4c7d',
    500: '#120d4a',
    950: '#000000',
  },
}
SCSS
$custom: #120d4a;
$custom-light: #5a4c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#120d4a",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 244.918,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.21944,
    "c": 0.10667,
    "h": 276.6
  },
  "luminance": 0.00911
}

Semantic roles & 50–950 ramp

primary
#120D4A
secondary
#7E852E
accent
#ED3BDE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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