#120C41#120C41

#120C41 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.7% C 0.095 H 279.2°. Best body text is #FFFFFF at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#120C41
RGBrgb(18, 12, 65)
HSLhsl(247, 69%, 15%)
HSVhsv(247, 82%, 25%)
CMYKcmyk(72.3%, 81.5%, 0%, 74.5%)
CIE-LABlab(6.98, 21.57, -32.37)
CIE-LCHlch(6.98, 38.89, 303.67°)
OKLaboklab(20.71% 0.0152 -0.0936)
OKLCHoklch(20.71% 0.095 279.2)
XYZxyz(1.3348, 0.7731, 5.0789)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C41 #3B410C
analogous
#0C2141 #120C41 #2C0C41
triadic
#120C41 #41120C #0C4112
tetradic
#120C41 #410C21 #3B410C #0C412C
square
#120C41 #410C21 #3B410C #0C412C
split-complementary
#120C41 #412C0C #21410C
monochromatic
#07051A #07051A #120C41 #201675 #2F1FA8

Accessibility & contrast

On white

18.19
#120C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#120C41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120C41
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C41#FFFFFF#000000##FFFFFF
##120C411.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001743
Deuteranopia (green-blind)
#001340
Tritanopia (blue-blind)
#001B25
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #120c41;
/* rgb */ color: rgb(18, 12, 65);
/* oklch */ color: oklch(20.7% 0.095 279.2);
Tailwind
colors: {
  custom: {
    50: '#574b76',
    500: '#120c41',
    950: '#000000',
  },
}
SCSS
$custom: #120c41;
$custom-light: #574b76;
$custom-dark: #000000;
JSON
{
  "hex": "#120c41",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 246.792,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.20713,
    "c": 0.09487,
    "h": 279.2
  },
  "luminance": 0.00773
}

Semantic roles & 50–950 ramp

primary
#120C41
secondary
#747D2C
accent
#EC3CD8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #120C41

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

Preview Lab → · Contrast checker → · Palette generator →

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