#120B4C#120B4C

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

Color values

HEX#120B4C
RGBrgb(18, 11, 76)
HSLhsl(246, 75%, 17%)
HSVhsv(246, 86%, 30%)
CMYKcmyk(76.3%, 85.5%, 0%, 70.2%)
CIE-LABlab(8.04, 26.47, -38.37)
CIE-LCHlch(8.04, 46.61, 304.60°)
OKLaboklab(21.88% 0.013 -0.1109)
OKLCHoklch(21.88% 0.112 276.7)
XYZxyz(1.6732, 0.8896, 6.9196)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120B4C #454C0B
analogous
#0B244C #120B4C #330B4C
triadic
#120B4C #4C120B #0B4C12
tetradic
#120B4C #4C0B24 #454C0B #0B4C33
square
#120B4C #4C0B24 #454C0B #0B4C33
split-complementary
#120B4C #4C330B #244C0B
monochromatic
#06041B #06041B #120B4C #1F1381 #2B1AB7

Accessibility & contrast

On white

17.83
#120B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120B4C
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120B4C#FFFFFF#000000##FFFFFF
##120B4C1.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4E
Deuteranopia (green-blind)
#00154B
Tritanopia (blue-blind)
#001E2B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #120b4c;
/* rgb */ color: rgb(18, 11, 76);
/* oklch */ color: oklch(21.9% 0.112 276.7);
Tailwind
colors: {
  custom: {
    50: '#5b4b7f',
    500: '#120b4c',
    950: '#000000',
  },
}
SCSS
$custom: #120b4c;
$custom-light: #5b4b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#120b4c",
  "rgb": {
    "r": 18,
    "g": 11,
    "b": 76
  },
  "hsl": {
    "h": 246.462,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.21883,
    "c": 0.11166,
    "h": 276.7
  },
  "luminance": 0.0089
}

Semantic roles & 50–950 ramp

primary
#120B4C
secondary
#7E882B
accent
#F136DD
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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