#120D2F#120D2F

#120D2F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.0% C 0.065 H 285.1°. Best body text is #FFFFFF at 18.68:1 contrast (WCAG AA passes).

Color values

HEX#120D2F
RGBrgb(18, 13, 47)
HSLhsl(249, 57%, 12%)
HSVhsv(249, 72%, 18%)
CMYKcmyk(61.7%, 72.3%, 0%, 81.6%)
CIE-LABlab(5.61, 12.86, -21.49)
CIE-LCHlch(5.61, 25.04, 300.89°)
OKLaboklab(18.97% 0.0169 -0.0629)
OKLCHoklch(18.97% 0.065 285.1)
XYZxyz(0.9063, 0.6216, 2.7610)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D2F #2A2F0D
analogous
#0D192F #120D2F #230D2F
triadic
#120D2F #2F120D #0D2F12
tetradic
#120D2F #2F0D19 #2A2F0D #0D2F23
square
#120D2F #2F0D19 #2A2F0D #0D2F23
split-complementary
#120D2F #2F230D #192F0D
monochromatic
#090718 #090718 #120D2F #241A5F #37288F

Accessibility & contrast

On white

18.68
#120D2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#120D2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120D2F
18.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D2F#FFFFFF#000000##FFFFFF
##120D2F1.0018.681.1218.68
#FFFFFF18.681.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#07151C
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #120d2f;
/* rgb */ color: rgb(18, 13, 47);
/* oklch */ color: oklch(19.0% 0.065 285.1);
Tailwind
colors: {
  custom: {
    50: '#524c68',
    500: '#120d2f',
    950: '#000000',
  },
}
SCSS
$custom: #120d2f;
$custom-light: #524c68;
$custom-dark: #000000;
JSON
{
  "hex": "#120d2f",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 47
  },
  "hsl": {
    "h": 248.824,
    "s": 56.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.18973,
    "c": 0.06518,
    "h": 285.1
  },
  "luminance": 0.00622
}

Semantic roles & 50–950 ramp

primary
#120D2F
secondary
#616A2E
accent
#E048CA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #120D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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