#120F5C#120F5C

#120F5C is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.5% C 0.129 H 273.0°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#120F5C
RGBrgb(18, 15, 92)
HSLhsl(242, 72%, 21%)
HSVhsv(242, 84%, 36%)
CMYKcmyk(80.4%, 83.7%, 0%, 63.9%)
CIE-LABlab(10.87, 29.88, -44.62)
CIE-LCHlch(10.87, 53.70, 303.80°)
OKLaboklab(24.46% 0.0067 -0.1291)
OKLCHoklch(24.46% 0.129 273)
XYZxyz(2.3514, 1.2427, 10.2391)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F5C #595C0F
analogous
#0F325C #120F5C #380F5C
triadic
#120F5C #5C120F #0F5C12
tetradic
#120F5C #5C0F32 #595C0F #0F5C38
square
#120F5C #5C0F32 #595C0F #0F5C38
split-complementary
#120F5C #5C380F #325C0F
monochromatic
#05041A #080627 #120F5C #1C1891 #2720C5

Accessibility & contrast

On white

16.82
#120F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120F5C
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F5C#FFFFFF#000000##FFFFFF
##120F5C1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #120f5c;
/* rgb */ color: rgb(18, 15, 92);
/* oklch */ color: oklch(24.5% 0.129 273.0);
Tailwind
colors: {
  custom: {
    50: '#5f4f8b',
    500: '#120f5c',
    950: '#000000',
  },
}
SCSS
$custom: #120f5c;
$custom-light: #5f4f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#120f5c",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 242.338,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.24459,
    "c": 0.12931,
    "h": 273
  },
  "luminance": 0.01243
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #120F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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