#120F4A#120F4A

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

Color values

HEX#120F4A
RGBrgb(18, 15, 74)
HSLhsl(243, 66%, 17%)
HSVhsv(243, 80%, 29%)
CMYKcmyk(75.7%, 79.7%, 0%, 71%)
CIE-LABlab(8.69, 23.19, -35.90)
CIE-LCHlch(8.69, 42.73, 302.86°)
OKLaboklab(22.28% 0.0109 -0.1037)
OKLCHoklch(22.28% 0.104 276)
XYZxyz(1.6559, 0.9645, 6.5761)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F4A #474A0F
analogous
#0F294A #120F4A #300F4A
triadic
#120F4A #4A120F #0F4A12
tetradic
#120F4A #4A0F29 #474A0F #0F4A30
square
#120F4A #4A0F29 #474A0F #0F4A30
split-complementary
#120F4A #4A300F #294A0F
monochromatic
#060519 #060519 #120F4A #1E197D #2B24B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##120F4A#FFFFFF#000000##FFFFFF
##120F4A1.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)
#001B4C
Deuteranopia (green-blind)
#001649
Tritanopia (blue-blind)
#00202B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #120f4a;
/* rgb */ color: rgb(18, 15, 74);
/* oklch */ color: oklch(22.3% 0.104 276.0);
Tailwind
colors: {
  custom: {
    50: '#5a4e7d',
    500: '#120f4a',
    950: '#000000',
  },
}
SCSS
$custom: #120f4a;
$custom-light: #5a4e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#120f4a",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 243.051,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22276,
    "c": 0.10431,
    "h": 276
  },
  "luminance": 0.00965
}

Semantic roles & 50–950 ramp

primary
#120F4A
secondary
#808430
accent
#E93FE1
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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