#121A31#121A31

#121A31 is a very dark, muted blue. Relative luminance 0.011; OKLCH L 22.3% C 0.047 H 268.0°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#121A31
RGBrgb(18, 26, 49)
HSLhsl(225, 46%, 13%)
HSVhsv(225, 63%, 19%)
CMYKcmyk(63.3%, 46.9%, 0%, 80.8%)
CIE-LABlab(9.71, 4.72, -16.43)
CIE-LCHlch(9.71, 17.09, 286.01°)
OKLaboklab(22.33% -0.0016 -0.0465)
OKLCHoklch(22.33% 0.047 268)
XYZxyz(1.1730, 1.0891, 3.0535)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121A31 #312912
analogous
#122931 #121A31 #191231
triadic
#121A31 #31121A #1A3112
tetradic
#121A31 #311229 #312912 #123119
square
#121A31 #311229 #312912 #123119
split-complementary
#121A31 #311912 #293112
monochromatic
#080C16 #080C16 #121A31 #22325E #33498B

Accessibility & contrast

On white

17.24
#121A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121A31
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121A31#FFFFFF#000000##FFFFFF
##121A311.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111C32
Deuteranopia (green-blind)
#0D1A30
Tritanopia (blue-blind)
#041F23
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #121a31;
/* rgb */ color: rgb(18, 26, 49);
/* oklch */ color: oklch(22.3% 0.047 268.0);
Tailwind
colors: {
  custom: {
    50: '#525669',
    500: '#121a31',
    950: '#000000',
  },
}
SCSS
$custom: #121a31;
$custom-light: #525669;
$custom-dark: #000000;
JSON
{
  "hex": "#121a31",
  "rgb": {
    "r": 18,
    "g": 26,
    "b": 49
  },
  "hsl": {
    "h": 224.516,
    "s": 46.269,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22331,
    "c": 0.04655,
    "h": 268
  },
  "luminance": 0.01089
}

Semantic roles & 50–950 ramp

primary
#121A31
secondary
#695C36
accent
#B452D6
background
#F4F5F6
surface
#E7E8EB
border
#C3C4C6
text
#020306
muted
#78787A

Preview Lab

Preview with #121A31

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

Preview Lab → · Contrast checker → · Palette generator →

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