#120C4F#120C4F

#120C4F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.115 H 275.8°. Best body text is #FFFFFF at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#120C4F
RGBrgb(18, 12, 79)
HSLhsl(245, 74%, 18%)
HSVhsv(245, 85%, 31%)
CMYKcmyk(77.2%, 84.8%, 0%, 69%)
CIE-LABlab(8.62, 26.96, -39.49)
CIE-LCHlch(8.62, 47.81, 304.32°)
OKLaboklab(22.4% 0.0116 -0.1142)
OKLCHoklch(22.4% 0.115 275.8)
XYZxyz(1.7917, 0.9559, 7.4857)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C4F #494F0C
analogous
#0C274F #120C4F #330C4F
triadic
#120C4F #4F120C #0C4F12
tetradic
#120C4F #4F0C27 #494F0C #0C4F33
square
#120C4F #4F0C27 #494F0C #0C4F33
split-complementary
#120C4F #4F330C #274F0C
monochromatic
#06041B #06041B #120C4F #1E1484 #2A1CB9

Accessibility & contrast

On white

17.63
#120C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C4F
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C4F#FFFFFF#000000##FFFFFF
##120C4F1.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C51
Deuteranopia (green-blind)
#00164E
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #120c4f;
/* rgb */ color: rgb(18, 12, 79);
/* oklch */ color: oklch(22.4% 0.115 275.8);
Tailwind
colors: {
  custom: {
    50: '#5b4c81',
    500: '#120c4f',
    950: '#000000',
  },
}
SCSS
$custom: #120c4f;
$custom-light: #5b4c81;
$custom-dark: #000000;
JSON
{
  "hex": "#120c4f",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 245.373,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22403,
    "c": 0.11475,
    "h": 275.8
  },
  "luminance": 0.00956
}

Semantic roles & 50–950 ramp

primary
#120C4F
secondary
#828B2C
accent
#F038E0
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #120C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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