#121B28#121B28

#121B28 is a very dark, muted blue. Relative luminance 0.011; OKLCH L 22.0% C 0.029 H 257.5°. Best body text is #FFFFFF at 17.31:1 contrast (WCAG AA passes).

Color values

HEX#121B28
RGBrgb(18, 27, 40)
HSLhsl(215, 38%, 11%)
HSVhsv(215, 55%, 16%)
CMYKcmyk(55%, 32.5%, 0%, 84.3%)
CIE-LABlab(9.53, 0.41, -10.12)
CIE-LCHlch(9.53, 10.13, 272.34°)
OKLaboklab(22.01% -0.0062 -0.0282)
OKLCHoklch(22.01% 0.029 257.5)
XYZxyz(1.0243, 1.0656, 2.1588)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B28 #281F12
analogous
#122628 #121B28 #141228
triadic
#121B28 #28121B #1B2812
tetradic
#121B28 #281226 #281F12 #122814
square
#121B28 #281226 #281F12 #122814
split-complementary
#121B28 #281412 #262812
monochromatic
#090E15 #090E15 #121B28 #253752 #38547C

Accessibility & contrast

On white

17.31
#121B28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#121B28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B28
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B28#FFFFFF#000000##FFFFFF
##121B281.0017.311.2117.31
#FFFFFF17.311.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161C29
Deuteranopia (green-blind)
#141A28
Tritanopia (blue-blind)
#0A1E1F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #121b28;
/* rgb */ color: rgb(18, 27, 40);
/* oklch */ color: oklch(22.0% 0.029 257.5);
Tailwind
colors: {
  custom: {
    50: '#515762',
    500: '#121b28',
    950: '#000000',
  },
}
SCSS
$custom: #121b28;
$custom-light: #515762;
$custom-dark: #000000;
JSON
{
  "hex": "#121b28",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 40
  },
  "hsl": {
    "h": 215.455,
    "s": 37.931,
    "l": 11.373
  },
  "oklch": {
    "l": 0.22008,
    "c": 0.02889,
    "h": 257.5
  },
  "luminance": 0.01066
}

Semantic roles & 50–950 ramp

primary
#121B28
secondary
#5F4F37
accent
#9E5ACE
background
#F4F5F5
surface
#E7E9EA
border
#C3C5C6
text
#020305
muted
#787879

Preview Lab

Preview with #121B28

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

Preview Lab → · Contrast checker → · Palette generator →

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