#120B4A#120B4A

#120B4A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.6% C 0.109 H 277.2°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#120B4A
RGBrgb(18, 11, 74)
HSLhsl(247, 74%, 17%)
HSVhsv(247, 85%, 29%)
CMYKcmyk(75.7%, 85.1%, 0%, 71%)
CIE-LABlab(7.79, 25.74, -37.39)
CIE-LCHlch(7.79, 45.39, 304.54°)
OKLaboklab(21.64% 0.0136 -0.108)
OKLCHoklch(21.64% 0.109 277.2)
XYZxyz(1.6048, 0.8622, 6.5591)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120B4A #434A0B
analogous
#0B244A #120B4A #320B4A
triadic
#120B4A #4A120B #0B4A12
tetradic
#120B4A #4A0B24 #434A0B #0B4A32
square
#120B4A #4A0B24 #434A0B #0B4A32
split-complementary
#120B4A #4A320B #244A0B
monochromatic
#06041B #06041B #120B4A #1F137F #2C1BB5

Accessibility & contrast

On white

17.91
#120B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#120B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120B4A
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120B4A#FFFFFF#000000##FFFFFF
##120B4A1.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4C
Deuteranopia (green-blind)
#001449
Tritanopia (blue-blind)
#001E2A
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #120b4a;
/* rgb */ color: rgb(18, 11, 74);
/* oklch */ color: oklch(21.6% 0.109 277.2);
Tailwind
colors: {
  custom: {
    50: '#5a4b7d',
    500: '#120b4a',
    950: '#000000',
  },
}
SCSS
$custom: #120b4a;
$custom-light: #5a4b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#120b4a",
  "rgb": {
    "r": 18,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 246.667,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.21635,
    "c": 0.1089,
    "h": 277.2
  },
  "luminance": 0.00862
}

Semantic roles & 50–950 ramp

primary
#120B4A
secondary
#7C862B
accent
#F137DC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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