#120C4E#120C4E

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

Color values

HEX#120C4E
RGBrgb(18, 12, 78)
HSLhsl(245, 73%, 18%)
HSVhsv(245, 85%, 31%)
CMYKcmyk(76.9%, 84.6%, 0%, 69.4%)
CIE-LABlab(8.49, 26.59, -39.00)
CIE-LCHlch(8.49, 47.21, 304.29°)
OKLaboklab(22.28% 0.0119 -0.1127)
OKLCHoklch(22.28% 0.113 276)
XYZxyz(1.7556, 0.9414, 7.2954)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C4E #484E0C
analogous
#0C274E #120C4E #330C4E
triadic
#120C4E #4E120C #0C4E12
tetradic
#120C4E #4E0C27 #484E0C #0C4E33
square
#120C4E #4E0C27 #484E0C #0C4E33
split-complementary
#120C4E #4E330C #274E0C
monochromatic
#06041B #06041B #120C4E #1E1483 #2A1CB8

Accessibility & contrast

On white

17.67
#120C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C4E
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C4E#FFFFFF#000000##FFFFFF
##120C4E1.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B50
Deuteranopia (green-blind)
#00164D
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #120c4e;
/* rgb */ color: rgb(18, 12, 78);
/* oklch */ color: oklch(22.3% 0.113 276.0);
Tailwind
colors: {
  custom: {
    50: '#5b4c80',
    500: '#120c4e',
    950: '#000000',
  },
}
SCSS
$custom: #120c4e;
$custom-light: #5b4c80;
$custom-dark: #000000;
JSON
{
  "hex": "#120c4e",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 245.455,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22278,
    "c": 0.11337,
    "h": 276
  },
  "luminance": 0.00942
}

Semantic roles & 50–950 ramp

primary
#120C4E
secondary
#818A2C
accent
#F038DF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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