#120B4D#120B4D

#120B4D is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.0% C 0.113 H 276.5°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#120B4D
RGBrgb(18, 11, 77)
HSLhsl(246, 75%, 17%)
HSVhsv(246, 86%, 30%)
CMYKcmyk(76.6%, 85.7%, 0%, 69.8%)
CIE-LABlab(8.16, 26.83, -38.86)
CIE-LCHlch(8.16, 47.22, 304.62°)
OKLaboklab(22.01% 0.0127 -0.1123)
OKLCHoklch(22.01% 0.113 276.5)
XYZxyz(1.7082, 0.9036, 7.1041)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120B4D #464D0B
analogous
#0B254D #120B4D #330B4D
triadic
#120B4D #4D120B #0B4D12
tetradic
#120B4D #4D0B25 #464D0B #0B4D33
square
#120B4D #4D0B25 #464D0B #0B4D33
split-complementary
#120B4D #4D330B #254D0B
monochromatic
#06041B #06041B #120B4D #1F1383 #2B1AB8

Accessibility & contrast

On white

17.78
#120B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120B4D
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120B4D#FFFFFF#000000##FFFFFF
##120B4D1.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4F
Deuteranopia (green-blind)
#00154C
Tritanopia (blue-blind)
#001F2C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #120b4d;
/* rgb */ color: rgb(18, 11, 77);
/* oklch */ color: oklch(22.0% 0.113 276.5);
Tailwind
colors: {
  custom: {
    50: '#5b4b80',
    500: '#120b4d',
    950: '#000000',
  },
}
SCSS
$custom: #120b4d;
$custom-light: #5b4b80;
$custom-dark: #000000;
JSON
{
  "hex": "#120b4d",
  "rgb": {
    "r": 18,
    "g": 11,
    "b": 77
  },
  "hsl": {
    "h": 246.364,
    "s": 75,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22008,
    "c": 0.11304,
    "h": 276.5
  },
  "luminance": 0.00904
}

Semantic roles & 50–950 ramp

primary
#120B4D
secondary
#7F892B
accent
#F236DE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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