#120C50#120C50

#120C50 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.5% C 0.116 H 275.6°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#120C50
RGBrgb(18, 12, 80)
HSLhsl(245, 74%, 18%)
HSVhsv(245, 85%, 31%)
CMYKcmyk(77.5%, 85%, 0%, 68.6%)
CIE-LABlab(8.74, 27.32, -39.97)
CIE-LCHlch(8.74, 48.41, 304.35°)
OKLaboklab(22.53% 0.0113 -0.1156)
OKLCHoklch(22.53% 0.116 275.6)
XYZxyz(1.8284, 0.9706, 7.6788)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C50 #4A500C
analogous
#0C2850 #120C50 #340C50
triadic
#120C50 #50120C #0C5012
tetradic
#120C50 #500C28 #4A500C #0C5034
square
#120C50 #500C28 #4A500C #0C5034
split-complementary
#120C50 #50340C #28500C
monochromatic
#06041B #06041B #120C50 #1E1485 #2A1CBA

Accessibility & contrast

On white

17.58
#120C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#120C50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120C50
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C50#FFFFFF#000000##FFFFFF
##120C501.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C52
Deuteranopia (green-blind)
#00164F
Tritanopia (blue-blind)
#00202E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #120c50;
/* rgb */ color: rgb(18, 12, 80);
/* oklch */ color: oklch(22.5% 0.116 275.6);
Tailwind
colors: {
  custom: {
    50: '#5c4c82',
    500: '#120c50',
    950: '#000000',
  },
}
SCSS
$custom: #120c50;
$custom-light: #5c4c82;
$custom-dark: #000000;
JSON
{
  "hex": "#120c50",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 80
  },
  "hsl": {
    "h": 245.294,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.22527,
    "c": 0.11611,
    "h": 275.6
  },
  "luminance": 0.00971
}

Semantic roles & 50–950 ramp

primary
#120C50
secondary
#838B2C
accent
#F137E0
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #120C50

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

Preview Lab → · Contrast checker → · Palette generator →

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