#120C4B#120C4B

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

Color values

HEX#120C4B
RGBrgb(18, 12, 75)
HSLhsl(246, 72%, 17%)
HSVhsv(246, 84%, 29%)
CMYKcmyk(76%, 84%, 0%, 70.6%)
CIE-LABlab(8.12, 25.50, -37.53)
CIE-LCHlch(8.12, 45.37, 304.19°)
OKLaboklab(21.91% 0.0127 -0.1085)
OKLCHoklch(21.91% 0.109 276.7)
XYZxyz(1.6505, 0.8994, 6.7419)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C4B #454B0C
analogous
#0C264B #120C4B #320C4B
triadic
#120C4B #4B120C #0C4B12
tetradic
#120C4B #4B0C26 #454B0C #0C4B32
square
#120C4B #4B0C26 #454B0C #0C4B32
split-complementary
#120C4B #4B320C #264B0C
monochromatic
#06041A #06041A #120C4B #1F1480 #2B1DB5

Accessibility & contrast

On white

17.80
#120C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C4B
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C4B#FFFFFF#000000##FFFFFF
##120C4B1.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #120c4b;
/* rgb */ color: rgb(18, 12, 75);
/* oklch */ color: oklch(21.9% 0.109 276.7);
Tailwind
colors: {
  custom: {
    50: '#5a4c7e',
    500: '#120c4b',
    950: '#000000',
  },
}
SCSS
$custom: #120c4b;
$custom-light: #5a4c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#120c4b",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 245.714,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.21908,
    "c": 0.10921,
    "h": 276.7
  },
  "luminance": 0.009
}

Semantic roles & 50–950 ramp

primary
#120C4B
secondary
#7E872C
accent
#EF39DE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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