#120F5A#120F5A

#120F5A is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.2% C 0.127 H 273.3°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#120F5A
RGBrgb(18, 15, 90)
HSLhsl(242, 71%, 21%)
HSVhsv(242, 83%, 35%)
CMYKcmyk(80%, 83.3%, 0%, 64.7%)
CIE-LABlab(10.62, 29.15, -43.69)
CIE-LCHlch(10.62, 52.52, 303.72°)
OKLaboklab(24.21% 0.0072 -0.1264)
OKLCHoklch(24.21% 0.127 273.3)
XYZxyz(2.2651, 1.2082, 9.7847)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F5A #575A0F
analogous
#0F315A #120F5A #370F5A
triadic
#120F5A #5A120F #0F5A12
tetradic
#120F5A #5A0F31 #575A0F #0F5A37
square
#120F5A #5A0F31 #575A0F #0F5A37
split-complementary
#120F5A #5A370F #315A0F
monochromatic
#05041A #080626 #120F5A #1C188E #2720C3

Accessibility & contrast

On white

16.91
#120F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#120F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F5A
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F5A#FFFFFF#000000##FFFFFF
##120F5A1.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00205C
Deuteranopia (green-blind)
#001959
Tritanopia (blue-blind)
#002634
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #120f5a;
/* rgb */ color: rgb(18, 15, 90);
/* oklch */ color: oklch(24.2% 0.127 273.3);
Tailwind
colors: {
  custom: {
    50: '#5e4f8a',
    500: '#120f5a',
    950: '#000000',
  },
}
SCSS
$custom: #120f5a;
$custom-light: #5e4f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#120f5a",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 242.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2421,
    "c": 0.12663,
    "h": 273.3
  },
  "luminance": 0.01208
}

Semantic roles & 50–950 ramp

primary
#120F5A
secondary
#909431
accent
#EE3AE7
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #120F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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