#121F34#121F34

#121F34 is a very dark, muted blue. Relative luminance 0.014; OKLCH L 23.9% C 0.045 H 259.6°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#121F34
RGBrgb(18, 31, 52)
HSLhsl(217, 49%, 14%)
HSVhsv(217, 65%, 20%)
CMYKcmyk(65.4%, 40.4%, 0%, 79.6%)
CIE-LABlab(11.66, 2.12, -15.52)
CIE-LCHlch(11.66, 15.66, 277.77°)
OKLaboklab(23.91% -0.008 -0.0438)
OKLCHoklch(23.91% 0.045 259.6)
XYZxyz(1.3591, 1.3564, 3.4383)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F34 #342712
analogous
#123034 #121F34 #161234
triadic
#121F34 #34121F #1F3412
tetradic
#121F34 #341230 #342712 #123416
square
#121F34 #341230 #342712 #123416
split-complementary
#121F34 #341612 #303412
monochromatic
#080E17 #080E17 #121F34 #223A61 #31558F

Accessibility & contrast

On white

16.52
#121F34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#121F34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F34
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F34#FFFFFF#000000##FFFFFF
##121F341.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172135
Deuteranopia (green-blind)
#121D34
Tritanopia (blue-blind)
#012427
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #121f34;
/* rgb */ color: rgb(18, 31, 52);
/* oklch */ color: oklch(23.9% 0.045 259.6);
Tailwind
colors: {
  custom: {
    50: '#535a6b',
    500: '#121f34',
    950: '#000000',
  },
}
SCSS
$custom: #121f34;
$custom-light: #535a6b;
$custom-dark: #000000;
JSON
{
  "hex": "#121f34",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 52
  },
  "hsl": {
    "h": 217.059,
    "s": 48.571,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23906,
    "c": 0.04454,
    "h": 259.6
  },
  "luminance": 0.01357
}

Semantic roles & 50–950 ramp

primary
#121F34
secondary
#6C5735
accent
#A450D8
background
#F4F5F6
surface
#E7E9EB
border
#C3C5C6
text
#020306
muted
#78787A

Preview Lab

Preview with #121F34

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

Preview Lab → · Contrast checker → · Palette generator →

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