#120F54#120F54

#120F54 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.5% C 0.118 H 274.2°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#120F54
RGBrgb(18, 15, 84)
HSLhsl(243, 70%, 19%)
HSVhsv(243, 82%, 33%)
CMYKcmyk(78.6%, 82.1%, 0%, 67.1%)
CIE-LABlab(9.88, 26.96, -40.84)
CIE-LCHlch(9.88, 48.94, 303.43°)
OKLaboklab(23.47% 0.0087 -0.1181)
OKLCHoklch(23.47% 0.118 274.2)
XYZxyz(2.0200, 1.1101, 8.4936)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F54 #51540F
analogous
#0F2F54 #120F54 #350F54
triadic
#120F54 #54120F #0F5412
tetradic
#120F54 #540F2F #51540F #0F5435
square
#120F54 #540F2F #51540F #0F5435
split-complementary
#120F54 #54350F #2F540F
monochromatic
#06051A #070620 #120F54 #1D1888 #2822BC

Accessibility & contrast

On white

17.18
#120F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#120F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F54
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F54#FFFFFF#000000##FFFFFF
##120F541.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E56
Deuteranopia (green-blind)
#001853
Tritanopia (blue-blind)
#002331
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #120f54;
/* rgb */ color: rgb(18, 15, 84);
/* oklch */ color: oklch(23.5% 0.118 274.2);
Tailwind
colors: {
  custom: {
    50: '#5d4e85',
    500: '#120f54',
    950: '#000000',
  },
}
SCSS
$custom: #120f54;
$custom-light: #5d4e85;
$custom-dark: #000000;
JSON
{
  "hex": "#120f54",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 242.609,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2347,
    "c": 0.11845,
    "h": 274.2
  },
  "luminance": 0.0111
}

Semantic roles & 50–950 ramp

primary
#120F54
secondary
#8A8E31
accent
#ED3BE5
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #120F54

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

Preview Lab → · Contrast checker → · Palette generator →

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