#121D31#121D31

#121D31 is a very dark, muted blue. Relative luminance 0.012; OKLCH L 23.1% C 0.042 H 261.7°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#121D31
RGBrgb(18, 29, 49)
HSLhsl(219, 46%, 13%)
HSVhsv(219, 63%, 19%)
CMYKcmyk(63.3%, 40.8%, 0%, 80.8%)
CIE-LABlab(10.77, 2.41, -14.76)
CIE-LCHlch(10.77, 14.96, 279.29°)
OKLaboklab(23.15% -0.0061 -0.0416)
OKLCHoklch(23.15% 0.042 261.7)
XYZxyz(1.2430, 1.2290, 3.0769)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D31 #312612
analogous
#122C31 #121D31 #161231
triadic
#121D31 #31121D #1D3112
tetradic
#121D31 #31122C #312612 #123116
square
#121D31 #31122C #312612 #123116
split-complementary
#121D31 #311612 #2C3112
monochromatic
#080D16 #080D16 #121D31 #22375E #33528B

Accessibility & contrast

On white

16.86
#121D31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#121D31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121D31
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D31#FFFFFF#000000##FFFFFF
##121D311.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151F32
Deuteranopia (green-blind)
#111C31
Tritanopia (blue-blind)
#042124
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121d31;
/* rgb */ color: rgb(18, 29, 49);
/* oklch */ color: oklch(23.1% 0.042 261.7);
Tailwind
colors: {
  custom: {
    50: '#525869',
    500: '#121d31',
    950: '#000000',
  },
}
SCSS
$custom: #121d31;
$custom-light: #525869;
$custom-dark: #000000;
JSON
{
  "hex": "#121d31",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 49
  },
  "hsl": {
    "h": 218.71,
    "s": 46.269,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23149,
    "c": 0.04207,
    "h": 261.7
  },
  "luminance": 0.01229
}

Semantic roles & 50–950 ramp

primary
#121D31
secondary
#695736
accent
#A752D6
background
#F4F5F6
surface
#E7E9EB
border
#C3C5C6
text
#020306
muted
#78787A

Preview Lab

Preview with #121D31

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

Preview Lab → · Contrast checker → · Palette generator →

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