#120F47#120F47

#120F47 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.9% C 0.100 H 276.6°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#120F47
RGBrgb(18, 15, 71)
HSLhsl(243, 65%, 17%)
HSVhsv(243, 79%, 28%)
CMYKcmyk(74.6%, 78.9%, 0%, 72.2%)
CIE-LABlab(8.35, 22.03, -34.36)
CIE-LCHlch(8.35, 40.82, 302.67°)
OKLaboklab(21.93% 0.0116 -0.0992)
OKLCHoklch(21.93% 0.1 276.6)
XYZxyz(1.5572, 0.9250, 6.0565)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F47 #44470F
analogous
#0F2847 #120F47 #2E0F47
triadic
#120F47 #47120F #0F4712
tetradic
#120F47 #470F28 #44470F #0F472E
square
#120F47 #470F28 #44470F #0F472E
split-complementary
#120F47 #472E0F #28470F
monochromatic
#060519 #060519 #120F47 #1F1A7A #2C24AC

Accessibility & contrast

On white

17.72
#120F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120F47
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F47#FFFFFF#000000##FFFFFF
##120F471.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B49
Deuteranopia (green-blind)
#001646
Tritanopia (blue-blind)
#001E29
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #120f47;
/* rgb */ color: rgb(18, 15, 71);
/* oklch */ color: oklch(21.9% 0.100 276.6);
Tailwind
colors: {
  custom: {
    50: '#594e7b',
    500: '#120f47',
    950: '#000000',
  },
}
SCSS
$custom: #120f47;
$custom-light: #594e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#120f47",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 243.214,
    "s": 65.116,
    "l": 16.863
  },
  "oklch": {
    "l": 0.21929,
    "c": 0.09991,
    "h": 276.6
  },
  "luminance": 0.00925
}

Semantic roles & 50–950 ramp

primary
#120F47
secondary
#7D8130
accent
#E840DF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #120F47

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

Preview Lab → · Contrast checker → · Palette generator →

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