#120C51#120C51

#120C51 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.7% C 0.117 H 275.4°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#120C51
RGBrgb(18, 12, 81)
HSLhsl(245, 74%, 18%)
HSVhsv(245, 85%, 32%)
CMYKcmyk(77.8%, 85.2%, 0%, 68.2%)
CIE-LABlab(8.87, 27.68, -40.45)
CIE-LCHlch(8.87, 49.01, 304.38°)
OKLaboklab(22.65% 0.011 -0.117)
OKLCHoklch(22.65% 0.117 275.4)
XYZxyz(1.8656, 0.9854, 7.8749)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C51 #4B510C
analogous
#0C2851 #120C51 #340C51
triadic
#120C51 #51120C #0C5112
tetradic
#120C51 #510C28 #4B510C #0C5134
square
#120C51 #510C28 #4B510C #0C5134
split-complementary
#120C51 #51340C #28510C
monochromatic
#06041B #06041C #120C51 #1E1486 #2A1CBC

Accessibility & contrast

On white

17.54
#120C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#120C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120C51
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C51#FFFFFF#000000##FFFFFF
##120C511.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C53
Deuteranopia (green-blind)
#001650
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #120c51;
/* rgb */ color: rgb(18, 12, 81);
/* oklch */ color: oklch(22.7% 0.117 275.4);
Tailwind
colors: {
  custom: {
    50: '#5c4c83',
    500: '#120c51',
    950: '#000000',
  },
}
SCSS
$custom: #120c51;
$custom-light: #5c4c83;
$custom-dark: #000000;
JSON
{
  "hex": "#120c51",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 245.217,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.22652,
    "c": 0.11748,
    "h": 275.4
  },
  "luminance": 0.00986
}

Semantic roles & 50–950 ramp

primary
#120C51
secondary
#848C2C
accent
#F137E1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #120C51

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

Preview Lab → · Contrast checker → · Palette generator →

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