#120F46#120F46

#120F46 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.8% C 0.098 H 276.8°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#120F46
RGBrgb(18, 15, 70)
HSLhsl(243, 65%, 17%)
HSVhsv(243, 79%, 27%)
CMYKcmyk(74.3%, 78.6%, 0%, 72.5%)
CIE-LABlab(8.24, 21.64, -33.84)
CIE-LCHlch(8.24, 40.17, 302.60°)
OKLaboklab(21.81% 0.0117 -0.0977)
OKLCHoklch(21.81% 0.098 276.8)
XYZxyz(1.5254, 0.9123, 5.8889)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F46 #43460F
analogous
#0F2846 #120F46 #2E0F46
triadic
#120F46 #46120F #0F4612
tetradic
#120F46 #460F28 #43460F #0F462E
square
#120F46 #460F28 #43460F #0F462E
split-complementary
#120F46 #462E0F #28460F
monochromatic
#060519 #060519 #120F46 #1F1A78 #2C25AB

Accessibility & contrast

On white

17.76
#120F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120F46
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F46#FFFFFF#000000##FFFFFF
##120F461.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001645
Tritanopia (blue-blind)
#001E29
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #120f46;
/* rgb */ color: rgb(18, 15, 70);
/* oklch */ color: oklch(21.8% 0.098 276.8);
Tailwind
colors: {
  custom: {
    50: '#594d7a',
    500: '#120f46',
    950: '#000000',
  },
}
SCSS
$custom: #120f46;
$custom-light: #594d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#120f46",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 243.273,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.21814,
    "c": 0.09843,
    "h": 276.8
  },
  "luminance": 0.00912
}

Semantic roles & 50–950 ramp

primary
#120F46
secondary
#7C8030
accent
#E840DF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #120F46

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

Preview Lab → · Contrast checker → · Palette generator →

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