#121F41#121F41

#121F41 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.9% C 0.067 H 266.0°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#121F41
RGBrgb(18, 31, 65)
HSLhsl(223, 57%, 16%)
HSVhsv(223, 72%, 25%)
CMYKcmyk(72.3%, 52.3%, 0%, 74.5%)
CIE-LABlab(12.54, 7.55, -23.34)
CIE-LCHlch(12.54, 24.53, 287.92°)
OKLaboklab(24.87% -0.0047 -0.0667)
OKLCHoklch(24.87% 0.067 266)
XYZxyz(1.6932, 1.4901, 5.1984)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F41 #413412
analogous
#123741 #121F41 #1D1241
triadic
#121F41 #41121F #1F4112
tetradic
#121F41 #411237 #413412 #12411D
square
#121F41 #411237 #413412 #12411D
split-complementary
#121F41 #411D12 #374112
monochromatic
#070B18 #070B18 #121F41 #1F3671 #2D4DA1

Accessibility & contrast

On white

16.18
#121F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#121F41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F41
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F41#FFFFFF#000000##FFFFFF
##121F411.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2342
Deuteranopia (green-blind)
#061F40
Tritanopia (blue-blind)
#00272C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #121f41;
/* rgb */ color: rgb(18, 31, 65);
/* oklch */ color: oklch(24.9% 0.067 266.0);
Tailwind
colors: {
  custom: {
    50: '#565a76',
    500: '#121f41',
    950: '#000000',
  },
}
SCSS
$custom: #121f41;
$custom-light: #565a76;
$custom-dark: #000000;
JSON
{
  "hex": "#121f41",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 65
  },
  "hsl": {
    "h": 223.404,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24872,
    "c": 0.06688,
    "h": 266
  },
  "luminance": 0.0149
}

Semantic roles & 50–950 ramp

primary
#121F41
secondary
#7A6735
accent
#B648E0
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121F41

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

Preview Lab → · Contrast checker → · Palette generator →

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