#121B31#121B31

#121B31 is a very dark, muted blue. Relative luminance 0.011; OKLCH L 22.6% C 0.045 H 266.1°. Best body text is #FFFFFF at 17.12:1 contrast (WCAG AA passes).

Color values

HEX#121B31
RGBrgb(18, 27, 49)
HSLhsl(223, 46%, 13%)
HSVhsv(223, 63%, 19%)
CMYKcmyk(63.3%, 44.9%, 0%, 80.8%)
CIE-LABlab(10.06, 3.95, -15.88)
CIE-LCHlch(10.06, 16.36, 283.96°)
OKLaboklab(22.6% -0.0031 -0.0449)
OKLCHoklch(22.6% 0.045 266.1)
XYZxyz(1.1956, 1.1341, 3.0610)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B31 #312812
analogous
#122A31 #121B31 #181231
triadic
#121B31 #31121B #1B3112
tetradic
#121B31 #31122A #312812 #123118
square
#121B31 #31122A #312812 #123118
split-complementary
#121B31 #311812 #2A3112
monochromatic
#080C16 #080C16 #121B31 #22345E #334C8B

Accessibility & contrast

On white

17.12
#121B31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#121B31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B31
17.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B31#FFFFFF#000000##FFFFFF
##121B311.0017.121.2317.12
#FFFFFF17.121.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121D32
Deuteranopia (green-blind)
#0F1A31
Tritanopia (blue-blind)
#042023
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #121b31;
/* rgb */ color: rgb(18, 27, 49);
/* oklch */ color: oklch(22.6% 0.045 266.1);
Tailwind
colors: {
  custom: {
    50: '#525669',
    500: '#121b31',
    950: '#000000',
  },
}
SCSS
$custom: #121b31;
$custom-light: #525669;
$custom-dark: #000000;
JSON
{
  "hex": "#121b31",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 49
  },
  "hsl": {
    "h": 222.581,
    "s": 46.269,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22601,
    "c": 0.045,
    "h": 266.1
  },
  "luminance": 0.01134
}

Semantic roles & 50–950 ramp

primary
#121B31
secondary
#695A36
accent
#B052D6
background
#F4F5F6
surface
#E7E9EB
border
#C3C5C6
text
#020306
muted
#78787A

Preview Lab

Preview with #121B31

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

Preview Lab → · Contrast checker → · Palette generator →

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