#121B2F#121B2F

#121B2F is a very dark, muted blue. Relative luminance 0.011; OKLCH L 22.5% C 0.041 H 264.9°. Best body text is #FFFFFF at 17.16:1 contrast (WCAG AA passes).

Color values

HEX#121B2F
RGBrgb(18, 27, 47)
HSLhsl(221, 45%, 13%)
HSVhsv(221, 62%, 18%)
CMYKcmyk(61.7%, 42.6%, 0%, 81.6%)
CIE-LABlab(9.94, 3.14, -14.62)
CIE-LCHlch(9.94, 14.96, 282.12°)
OKLaboklab(22.46% -0.0037 -0.0412)
OKLCHoklch(22.46% 0.041 264.9)
XYZxyz(1.1543, 1.1176, 2.8437)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B2F #2F2612
analogous
#12292F #121B2F #17122F
triadic
#121B2F #2F121B #1B2F12
tetradic
#121B2F #2F1229 #2F2612 #122F17
square
#121B2F #2F1229 #2F2612 #122F17
split-complementary
#121B2F #2F1712 #292F12
monochromatic
#080D16 #080D16 #121B2F #23345B #344E88

Accessibility & contrast

On white

17.16
#121B2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#121B2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B2F
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B2F#FFFFFF#000000##FFFFFF
##121B2F1.0017.161.2217.16
#FFFFFF17.161.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131D30
Deuteranopia (green-blind)
#101A2F
Tritanopia (blue-blind)
#061F22
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #121b2f;
/* rgb */ color: rgb(18, 27, 47);
/* oklch */ color: oklch(22.5% 0.041 264.9);
Tailwind
colors: {
  custom: {
    50: '#525767',
    500: '#121b2f',
    950: '#000000',
  },
}
SCSS
$custom: #121b2f;
$custom-light: #525767;
$custom-dark: #000000;
JSON
{
  "hex": "#121b2f",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 47
  },
  "hsl": {
    "h": 221.379,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.22461,
    "c": 0.0414,
    "h": 264.9
  },
  "luminance": 0.01118
}

Semantic roles & 50–950 ramp

primary
#121B2F
secondary
#675836
accent
#AC53D4
background
#F4F5F6
surface
#E7E9EB
border
#C3C5C6
text
#020306
muted
#78787A

Preview Lab

Preview with #121B2F

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

Preview Lab → · Contrast checker → · Palette generator →

#121B2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva