#120D4C#120D4C

#120D4C is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.2% C 0.110 H 276.2°. Best body text is #FFFFFF at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#120D4C
RGBrgb(18, 13, 76)
HSLhsl(245, 71%, 17%)
HSVhsv(245, 83%, 30%)
CMYKcmyk(76.3%, 82.9%, 0%, 70.2%)
CIE-LABlab(8.46, 25.24, -37.66)
CIE-LCHlch(8.46, 45.34, 303.83°)
OKLaboklab(22.19% 0.0118 -0.1089)
OKLCHoklch(22.19% 0.11 276.2)
XYZxyz(1.6975, 0.9381, 6.9277)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D4C #474C0D
analogous
#0D274C #120D4C #320D4C
triadic
#120D4C #4C120D #0D4C12
tetradic
#120D4C #4C0D27 #474C0D #0D4C32
square
#120D4C #4C0D27 #474C0D #0D4C32
split-complementary
#120D4C #4C320D #274C0D
monochromatic
#06041A #06041A #120D4C #1E1680 #2B1FB5

Accessibility & contrast

On white

17.68
#120D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120D4C
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D4C#FFFFFF#000000##FFFFFF
##120D4C1.0017.681.1917.68
#FFFFFF17.681.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4E
Deuteranopia (green-blind)
#00164B
Tritanopia (blue-blind)
#001F2C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #120d4c;
/* rgb */ color: rgb(18, 13, 76);
/* oklch */ color: oklch(22.2% 0.110 276.2);
Tailwind
colors: {
  custom: {
    50: '#5b4d7f',
    500: '#120d4c',
    950: '#000000',
  },
}
SCSS
$custom: #120d4c;
$custom-light: #5b4d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#120d4c",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 244.762,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22185,
    "c": 0.1095,
    "h": 276.2
  },
  "luminance": 0.00938
}

Semantic roles & 50–950 ramp

primary
#120D4C
secondary
#80872E
accent
#EE3ADF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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