#121E2F#121E2F

#121E2F is a very dark, muted blue. Relative luminance 0.013; OKLCH L 23.3% C 0.037 H 257.2°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#121E2F
RGBrgb(18, 30, 47)
HSLhsl(215, 45%, 13%)
HSVhsv(215, 62%, 18%)
CMYKcmyk(61.7%, 36.2%, 0%, 81.6%)
CIE-LABlab(11.01, 0.86, -12.94)
CIE-LCHlch(11.01, 12.97, 273.81°)
OKLaboklab(23.3% -0.0083 -0.0363)
OKLCHoklch(23.3% 0.037 257.2)
XYZxyz(1.2266, 1.2623, 2.8678)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E2F #2F2312
analogous
#122C2F #121E2F #14122F
triadic
#121E2F #2F121E #1E2F12
tetradic
#121E2F #2F122C #2F2312 #122F14
square
#121E2F #2F122C #2F2312 #122F14
split-complementary
#121E2F #2F1412 #2C2F12
monochromatic
#080E16 #080E16 #121E2F #233A5B #345688

Accessibility & contrast

On white

16.77
#121E2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121E2F
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E2F#FFFFFF#000000##FFFFFF
##121E2F1.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171F30
Deuteranopia (green-blind)
#141C2F
Tritanopia (blue-blind)
#052224
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121e2f;
/* rgb */ color: rgb(18, 30, 47);
/* oklch */ color: oklch(23.3% 0.037 257.2);
Tailwind
colors: {
  custom: {
    50: '#525967',
    500: '#121e2f',
    950: '#000000',
  },
}
SCSS
$custom: #121e2f;
$custom-light: #525967;
$custom-dark: #000000;
JSON
{
  "hex": "#121e2f",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 47
  },
  "hsl": {
    "h": 215.172,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23297,
    "c": 0.03725,
    "h": 257.2
  },
  "luminance": 0.01262
}

Semantic roles & 50–950 ramp

primary
#121E2F
secondary
#675336
accent
#9F53D4
background
#F4F5F6
surface
#E7E9EB
border
#C3C5C6
text
#020306
muted
#78787A

Preview Lab

Preview with #121E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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