#120B40#120B40

#120B40 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.4% C 0.095 H 279.9°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#120B40
RGBrgb(18, 11, 64)
HSLhsl(248, 71%, 15%)
HSVhsv(248, 83%, 25%)
CMYKcmyk(71.9%, 82.8%, 0%, 74.9%)
CIE-LABlab(6.67, 21.70, -32.17)
CIE-LCHlch(6.67, 38.81, 303.99°)
OKLaboklab(20.43% 0.0163 -0.0932)
OKLCHoklch(20.43% 0.095 279.9)
XYZxyz(1.2942, 0.7380, 4.9237)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120B40 #39400B
analogous
#0B1E40 #120B40 #2D0B40
triadic
#120B40 #40120B #0B4012
tetradic
#120B40 #400B1E #39400B #0B402D
square
#120B40 #400B1E #39400B #0B402D
split-complementary
#120B40 #402D0B #1E400B
monochromatic
#07041A #07041A #120B40 #211474 #2F1DA8

Accessibility & contrast

On white

18.30
#120B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120B40
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120B40#FFFFFF#000000##FFFFFF
##120B401.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #120b40;
/* rgb */ color: rgb(18, 11, 64);
/* oklch */ color: oklch(20.4% 0.095 279.9);
Tailwind
colors: {
  custom: {
    50: '#574b75',
    500: '#120b40',
    950: '#000000',
  },
}
SCSS
$custom: #120b40;
$custom-light: #574b75;
$custom-dark: #000000;
JSON
{
  "hex": "#120b40",
  "rgb": {
    "r": 18,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 247.925,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20428,
    "c": 0.09465,
    "h": 279.9
  },
  "luminance": 0.00738
}

Semantic roles & 50–950 ramp

primary
#120B40
secondary
#727D2A
accent
#ED3AD6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #120B40

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

Preview Lab → · Contrast checker → · Palette generator →

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