#120C40#120C40

#120C40 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.6% C 0.093 H 279.5°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#120C40
RGBrgb(18, 12, 64)
HSLhsl(247, 68%, 15%)
HSVhsv(247, 81%, 25%)
CMYKcmyk(71.9%, 81.2%, 0%, 74.9%)
CIE-LABlab(6.88, 21.14, -31.83)
CIE-LCHlch(6.88, 38.21, 303.59°)
OKLaboklab(20.6% 0.0155 -0.0921)
OKLCHoklch(20.6% 0.093 279.5)
XYZxyz(1.3060, 0.7616, 4.9277)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C40 #3A400C
analogous
#0C2040 #120C40 #2C0C40
triadic
#120C40 #40120C #0C4012
tetradic
#120C40 #400C20 #3A400C #0C402C
square
#120C40 #400C20 #3A400C #0C402C
split-complementary
#120C40 #402C0C #20400C
monochromatic
#07051A #07051A #120C40 #201674 #2F1FA7

Accessibility & contrast

On white

18.22
#120C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C40
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C40#FFFFFF#000000##FFFFFF
##120C401.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #120c40;
/* rgb */ color: rgb(18, 12, 64);
/* oklch */ color: oklch(20.6% 0.093 279.5);
Tailwind
colors: {
  custom: {
    50: '#574b75',
    500: '#120c40',
    950: '#000000',
  },
}
SCSS
$custom: #120c40;
$custom-light: #574b75;
$custom-dark: #000000;
JSON
{
  "hex": "#120c40",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 246.923,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.20597,
    "c": 0.0934,
    "h": 279.5
  },
  "luminance": 0.00762
}

Semantic roles & 50–950 ramp

primary
#120C40
secondary
#737C2C
accent
#EB3DD7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #120C40

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

Preview Lab → · Contrast checker → · Palette generator →

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