#120F5B#120F5B

#120F5B is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.3% C 0.128 H 273.1°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#120F5B
RGBrgb(18, 15, 91)
HSLhsl(242, 72%, 21%)
HSVhsv(242, 84%, 36%)
CMYKcmyk(80.2%, 83.5%, 0%, 64.3%)
CIE-LABlab(10.74, 29.52, -44.16)
CIE-LCHlch(10.74, 53.12, 303.76°)
OKLaboklab(24.33% 0.007 -0.1278)
OKLCHoklch(24.33% 0.128 273.1)
XYZxyz(2.3080, 1.2253, 10.0104)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F5B #585B0F
analogous
#0F325B #120F5B #380F5B
triadic
#120F5B #5B120F #0F5B12
tetradic
#120F5B #5B0F32 #585B0F #0F5B38
square
#120F5B #5B0F32 #585B0F #0F5B38
split-complementary
#120F5B #5B380F #325B0F
monochromatic
#05041A #080626 #120F5B #1C1890 #2720C4

Accessibility & contrast

On white

16.86
#120F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#120F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F5B
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F5B#FFFFFF#000000##FFFFFF
##120F5B1.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215D
Deuteranopia (green-blind)
#00195A
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #120f5b;
/* rgb */ color: rgb(18, 15, 91);
/* oklch */ color: oklch(24.3% 0.128 273.1);
Tailwind
colors: {
  custom: {
    50: '#5f4f8a',
    500: '#120f5b',
    950: '#000000',
  },
}
SCSS
$custom: #120f5b;
$custom-light: #5f4f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#120f5b",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 242.368,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.24334,
    "c": 0.12796,
    "h": 273.1
  },
  "luminance": 0.01226
}

Semantic roles & 50–950 ramp

primary
#120F5B
secondary
#919531
accent
#EE39E7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #120F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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