#120D56#120D56

#120D56 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.4% C 0.123 H 274.3°. Best body text is #FFFFFF at 17.25:1 contrast (WCAG AA passes).

Color values

HEX#120D56
RGBrgb(18, 13, 86)
HSLhsl(244, 74%, 19%)
HSVhsv(244, 85%, 34%)
CMYKcmyk(79.1%, 84.9%, 0%, 66.3%)
CIE-LABlab(9.70, 28.89, -42.49)
CIE-LCHlch(9.70, 51.38, 304.21°)
OKLaboklab(23.42% 0.0092 -0.1229)
OKLCHoklch(23.42% 0.123 274.3)
XYZxyz(2.0725, 1.0881, 8.9031)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D56 #51560D
analogous
#0D2D56 #120D56 #370D56
triadic
#120D56 #56120D #0D5612
tetradic
#120D56 #560D2D #51560D #0D5637
square
#120D56 #560D2D #51560D #0D5637
split-complementary
#120D56 #56370D #2D560D
monochromatic
#06041B #070521 #120D56 #1D158B #281DC0

Accessibility & contrast

On white

17.25
#120D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#120D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120D56
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D56#FFFFFF#000000##FFFFFF
##120D561.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E58
Deuteranopia (green-blind)
#001755
Tritanopia (blue-blind)
#002331
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #120d56;
/* rgb */ color: rgb(18, 13, 86);
/* oklch */ color: oklch(23.4% 0.123 274.3);
Tailwind
colors: {
  custom: {
    50: '#5d4d87',
    500: '#120d56',
    950: '#000000',
  },
}
SCSS
$custom: #120d56;
$custom-light: #5d4d87;
$custom-dark: #000000;
JSON
{
  "hex": "#120d56",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 86
  },
  "hsl": {
    "h": 244.11,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.23423,
    "c": 0.12324,
    "h": 274.3
  },
  "luminance": 0.01088
}

Semantic roles & 50–950 ramp

primary
#120D56
secondary
#8A912E
accent
#F037E4
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #120D56

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

Preview Lab → · Contrast checker → · Palette generator →

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