#120D4E#120D4E

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

Color values

HEX#120D4E
RGBrgb(18, 13, 78)
HSLhsl(245, 71%, 18%)
HSVhsv(245, 83%, 31%)
CMYKcmyk(76.9%, 83.3%, 0%, 69.4%)
CIE-LABlab(8.71, 25.98, -38.65)
CIE-LCHlch(8.71, 46.57, 303.91°)
OKLaboklab(22.43% 0.0113 -0.1117)
OKLCHoklch(22.43% 0.112 275.8)
XYZxyz(1.7681, 0.9663, 7.2996)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D4E #494E0D
analogous
#0D294E #120D4E #320D4E
triadic
#120D4E #4E120D #0D4E12
tetradic
#120D4E #4E0D29 #494E0D #0D4E32
square
#120D4E #4E0D29 #494E0D #0D4E32
split-complementary
#120D4E #4E320D #294E0D
monochromatic
#06041A #06041A #120D4E #1E1682 #2A1EB7

Accessibility & contrast

On white

17.60
#120D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120D4E
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D4E#FFFFFF#000000##FFFFFF
##120D4E1.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #120d4e;
/* rgb */ color: rgb(18, 13, 78);
/* oklch */ color: oklch(22.4% 0.112 275.8);
Tailwind
colors: {
  custom: {
    50: '#5b4d80',
    500: '#120d4e',
    950: '#000000',
  },
}
SCSS
$custom: #120d4e;
$custom-light: #5b4d80;
$custom-dark: #000000;
JSON
{
  "hex": "#120d4e",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 78
  },
  "hsl": {
    "h": 244.615,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22429,
    "c": 0.1123,
    "h": 275.8
  },
  "luminance": 0.00967
}

Semantic roles & 50–950 ramp

primary
#120D4E
secondary
#82892E
accent
#EE3AE0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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