#120F45#120F45

#120F45 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.7% C 0.097 H 277.1°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#120F45
RGBrgb(18, 15, 69)
HSLhsl(243, 64%, 16%)
HSVhsv(243, 78%, 27%)
CMYKcmyk(73.9%, 78.3%, 0%, 72.9%)
CIE-LABlab(8.13, 21.26, -33.32)
CIE-LCHlch(8.13, 39.53, 302.53°)
OKLaboklab(21.7% 0.0119 -0.0962)
OKLCHoklch(21.7% 0.097 277.1)
XYZxyz(1.4941, 0.8998, 5.7240)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F45 #42450F
analogous
#0F2745 #120F45 #2D0F45
triadic
#120F45 #45120F #0F4512
tetradic
#120F45 #450F27 #42450F #0F452D
square
#120F45 #450F27 #42450F #0F452D
split-complementary
#120F45 #452D0F #27450F
monochromatic
#070519 #070519 #120F45 #1F1A77 #2C25AA

Accessibility & contrast

On white

17.80
#120F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#120F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F45
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F45#FFFFFF#000000##FFFFFF
##120F451.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A47
Deuteranopia (green-blind)
#001544
Tritanopia (blue-blind)
#001E28
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #120f45;
/* rgb */ color: rgb(18, 15, 69);
/* oklch */ color: oklch(21.7% 0.097 277.1);
Tailwind
colors: {
  custom: {
    50: '#584d79',
    500: '#120f45',
    950: '#000000',
  },
}
SCSS
$custom: #120f45;
$custom-light: #584d79;
$custom-dark: #000000;
JSON
{
  "hex": "#120f45",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 243.333,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.21701,
    "c": 0.09695,
    "h": 277.1
  },
  "luminance": 0.009
}

Semantic roles & 50–950 ramp

primary
#120F45
secondary
#7B7F30
accent
#E741DE
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #120F45

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

Preview Lab → · Contrast checker → · Palette generator →

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