#120F5E#120F5E

#120F5E is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.7% C 0.132 H 272.7°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#120F5E
RGBrgb(18, 15, 94)
HSLhsl(242, 72%, 21%)
HSVhsv(242, 84%, 37%)
CMYKcmyk(80.9%, 84%, 0%, 63.1%)
CIE-LABlab(11.12, 30.60, -45.55)
CIE-LCHlch(11.12, 54.87, 303.89°)
OKLaboklab(24.71% 0.0063 -0.1318)
OKLCHoklch(24.71% 0.132 272.7)
XYZxyz(2.4400, 1.2781, 10.7056)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F5E #5B5E0F
analogous
#0F345E #120F5E #3A0F5E
triadic
#120F5E #5E120F #0F5E12
tetradic
#120F5E #5E0F34 #5B5E0F #0F5E3A
square
#120F5E #5E0F34 #5B5E0F #0F5E3A
split-complementary
#120F5E #5E3A0F #345E0F
monochromatic
#05041A #080729 #120F5E #1C1793 #2620C8

Accessibility & contrast

On white

16.73
#120F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#120F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F5E
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F5E#FFFFFF#000000##FFFFFF
##120F5E1.0016.731.2616.73
#FFFFFF16.731.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002160
Deuteranopia (green-blind)
#001A5D
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #120f5e;
/* rgb */ color: rgb(18, 15, 94);
/* oklch */ color: oklch(24.7% 0.132 272.7);
Tailwind
colors: {
  custom: {
    50: '#5f4f8d',
    500: '#120f5e',
    950: '#000000',
  },
}
SCSS
$custom: #120f5e;
$custom-light: #5f4f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#120f5e",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 242.278,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.24711,
    "c": 0.13196,
    "h": 272.7
  },
  "luminance": 0.01278
}

Semantic roles & 50–950 ramp

primary
#120F5E
secondary
#939731
accent
#EF39E8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #120F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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