#120C53#120C53

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

Color values

HEX#120C53
RGBrgb(18, 12, 83)
HSLhsl(245, 75%, 19%)
HSVhsv(245, 86%, 33%)
CMYKcmyk(78.3%, 85.5%, 0%, 67.5%)
CIE-LABlab(9.12, 28.39, -41.40)
CIE-LCHlch(9.12, 50.20, 304.44°)
OKLaboklab(22.9% 0.0105 -0.1197)
OKLCHoklch(22.9% 0.12 275)
XYZxyz(1.9417, 1.0159, 8.2757)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C53 #4D530C
analogous
#0C2953 #120C53 #350C53
triadic
#120C53 #53120C #0C5312
tetradic
#120C53 #530C29 #4D530C #0C5335
square
#120C53 #530C29 #4D530C #0C5335
split-complementary
#120C53 #53350C #29530C
monochromatic
#06041B #06041E #120C53 #1E1488 #291BBE

Accessibility & contrast

On white

17.45
#120C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C53
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C53#FFFFFF#000000##FFFFFF
##120C531.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #120c53;
/* rgb */ color: rgb(18, 12, 83);
/* oklch */ color: oklch(22.9% 0.120 275.0);
Tailwind
colors: {
  custom: {
    50: '#5d4c84',
    500: '#120c53',
    950: '#000000',
  },
}
SCSS
$custom: #120c53;
$custom-light: #5d4c84;
$custom-dark: #000000;
JSON
{
  "hex": "#120c53",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 83
  },
  "hsl": {
    "h": 245.07,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.22904,
    "c": 0.12019,
    "h": 275
  },
  "luminance": 0.01016
}

Semantic roles & 50–950 ramp

primary
#120C53
secondary
#868E2D
accent
#F136E2
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #120C53

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

Preview Lab → · Contrast checker → · Palette generator →

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