#120D52#120D52

#120D52 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.9% C 0.118 H 275.0°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#120D52
RGBrgb(18, 13, 82)
HSLhsl(244, 73%, 19%)
HSVhsv(244, 84%, 32%)
CMYKcmyk(78%, 84.1%, 0%, 67.8%)
CIE-LABlab(9.20, 27.45, -40.59)
CIE-LCHlch(9.20, 49.00, 304.07°)
OKLaboklab(22.92% 0.0103 -0.1174)
OKLCHoklch(22.92% 0.118 275)
XYZxyz(1.9159, 1.0255, 8.0780)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D52 #4D520D
analogous
#0D2A52 #120D52 #340D52
triadic
#120D52 #52120D #0D5212
tetradic
#120D52 #520D2A #4D520D #0D5234
square
#120D52 #520D2A #4D520D #0D5234
split-complementary
#120D52 #52340D #2A520D
monochromatic
#06041A #06051D #120D52 #1E1587 #291EBC

Accessibility & contrast

On white

17.42
#120D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#120D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120D52
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D52#FFFFFF#000000##FFFFFF
##120D521.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D54
Deuteranopia (green-blind)
#001751
Tritanopia (blue-blind)
#00222F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #120d52;
/* rgb */ color: rgb(18, 13, 82);
/* oklch */ color: oklch(22.9% 0.118 275.0);
Tailwind
colors: {
  custom: {
    50: '#5c4d83',
    500: '#120d52',
    950: '#000000',
  },
}
SCSS
$custom: #120d52;
$custom-light: #5c4d83;
$custom-dark: #000000;
JSON
{
  "hex": "#120d52",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 244.348,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.22922,
    "c": 0.11782,
    "h": 275
  },
  "luminance": 0.01026
}

Semantic roles & 50–950 ramp

primary
#120D52
secondary
#868D2E
accent
#EF38E2
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #120D52

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

Preview Lab → · Contrast checker → · Palette generator →

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