#120F2E#120F2E

#120F2E is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.3% C 0.060 H 283.6°. Best body text is #FFFFFF at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#120F2E
RGBrgb(18, 15, 46)
HSLhsl(246, 51%, 12%)
HSVhsv(246, 67%, 18%)
CMYKcmyk(60.9%, 67.4%, 0%, 82%)
CIE-LABlab(6.03, 11.34, -20.09)
CIE-LCHlch(6.03, 23.07, 299.46°)
OKLaboklab(19.32% 0.0141 -0.0583)
OKLCHoklch(19.32% 0.06 283.6)
XYZxyz(0.9133, 0.6675, 2.6649)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F2E #2B2E0F
analogous
#0F1C2E #120F2E #220F2E
triadic
#120F2E #2E120F #0F2E12
tetradic
#120F2E #2E0F1C #2B2E0F #0F2E22
square
#120F2E #2E0F1C #2B2E0F #0F2E22
split-complementary
#120F2E #2E220F #1C2E0F
monochromatic
#090817 #090817 #120F2E #241E5C #362D8A

Accessibility & contrast

On white

18.53
#120F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#120F2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F2E
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F2E#FFFFFF#000000##FFFFFF
##120F2E1.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01142F
Deuteranopia (green-blind)
#00122D
Tritanopia (blue-blind)
#08161C
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #120f2e;
/* rgb */ color: rgb(18, 15, 46);
/* oklch */ color: oklch(19.3% 0.060 283.6);
Tailwind
colors: {
  custom: {
    50: '#524d67',
    500: '#120f2e',
    950: '#000000',
  },
}
SCSS
$custom: #120f2e;
$custom-light: #524d67;
$custom-dark: #000000;
JSON
{
  "hex": "#120f2e",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 46
  },
  "hsl": {
    "h": 245.806,
    "s": 50.82,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19323,
    "c": 0.06,
    "h": 283.6
  },
  "luminance": 0.00668
}

Semantic roles & 50–950 ramp

primary
#120F2E
secondary
#626831
accent
#DA4DCD
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #120F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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