#120B4F#120B4F

#120B4F is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.3% C 0.116 H 276.0°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#120B4F
RGBrgb(18, 11, 79)
HSLhsl(246, 76%, 18%)
HSVhsv(246, 86%, 31%)
CMYKcmyk(77.2%, 86.1%, 0%, 69%)
CIE-LABlab(8.41, 27.54, -39.82)
CIE-LCHlch(8.41, 48.42, 304.67°)
OKLaboklab(22.26% 0.0121 -0.1151)
OKLCHoklch(22.26% 0.116 276)
XYZxyz(1.7799, 0.9323, 7.4818)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120B4F #484F0B
analogous
#0B264F #120B4F #340B4F
triadic
#120B4F #4F120B #0B4F12
tetradic
#120B4F #4F0B26 #484F0B #0B4F34
square
#120B4F #4F0B26 #484F0B #0B4F34
split-complementary
#120B4F #4F340B #264F0B
monochromatic
#06041B #06041B #120B4F #1E1285 #2A1ABA

Accessibility & contrast

On white

17.70
#120B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#120B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120B4F
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120B4F#FFFFFF#000000##FFFFFF
##120B4F1.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B51
Deuteranopia (green-blind)
#00154E
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #120b4f;
/* rgb */ color: rgb(18, 11, 79);
/* oklch */ color: oklch(22.3% 0.116 276.0);
Tailwind
colors: {
  custom: {
    50: '#5c4c81',
    500: '#120b4f',
    950: '#000000',
  },
}
SCSS
$custom: #120b4f;
$custom-light: #5c4c81;
$custom-dark: #000000;
JSON
{
  "hex": "#120b4f",
  "rgb": {
    "r": 18,
    "g": 11,
    "b": 79
  },
  "hsl": {
    "h": 246.176,
    "s": 75.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2226,
    "c": 0.11577,
    "h": 276
  },
  "luminance": 0.00932
}

Semantic roles & 50–950 ramp

primary
#120B4F
secondary
#818B2B
accent
#F236DF
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #120B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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