#120C52#120C52

#120C52 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.8% C 0.119 H 275.2°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#120C52
RGBrgb(18, 12, 82)
HSLhsl(245, 74%, 18%)
HSVhsv(245, 85%, 32%)
CMYKcmyk(78%, 85.4%, 0%, 67.8%)
CIE-LABlab(9.00, 28.04, -40.93)
CIE-LCHlch(9.00, 49.61, 304.41°)
OKLaboklab(22.78% 0.0108 -0.1183)
OKLCHoklch(22.78% 0.119 275.2)
XYZxyz(1.9034, 1.0006, 8.0738)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C52 #4C520C
analogous
#0C2952 #120C52 #350C52
triadic
#120C52 #52120C #0C5212
tetradic
#120C52 #520C29 #4C520C #0C5235
square
#120C52 #520C29 #4C520C #0C5235
split-complementary
#120C52 #52350C #29520C
monochromatic
#06041B #06041D #120C52 #1E1487 #291CBD

Accessibility & contrast

On white

17.50
#120C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C52
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C52#FFFFFF#000000##FFFFFF
##120C521.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D54
Deuteranopia (green-blind)
#001651
Tritanopia (blue-blind)
#00212F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #120c52;
/* rgb */ color: rgb(18, 12, 82);
/* oklch */ color: oklch(22.8% 0.119 275.2);
Tailwind
colors: {
  custom: {
    50: '#5c4c84',
    500: '#120c52',
    950: '#000000',
  },
}
SCSS
$custom: #120c52;
$custom-light: #5c4c84;
$custom-dark: #000000;
JSON
{
  "hex": "#120c52",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 82
  },
  "hsl": {
    "h": 245.143,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.22778,
    "c": 0.11884,
    "h": 275.2
  },
  "luminance": 0.01001
}

Semantic roles & 50–950 ramp

primary
#120C52
secondary
#858D2C
accent
#F137E1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #120C52

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

Preview Lab → · Contrast checker → · Palette generator →

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