#121F3E#121F3E

#121F3E is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.6% C 0.062 H 265.1°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#121F3E
RGBrgb(18, 31, 62)
HSLhsl(222, 55%, 16%)
HSVhsv(222, 71%, 24%)
CMYKcmyk(71%, 50%, 0%, 75.7%)
CIE-LABlab(12.33, 6.27, -21.58)
CIE-LCHlch(12.33, 22.47, 286.21°)
OKLaboklab(24.64% -0.0053 -0.0615)
OKLCHoklch(24.64% 0.062 265.1)
XYZxyz(1.6086, 1.4562, 4.7528)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F3E #3E3112
analogous
#12353E #121F3E #1B123E
triadic
#121F3E #3E121F #1F3E12
tetradic
#121F3E #3E1235 #3E3112 #123E1B
square
#121F3E #3E1235 #3E3112 #123E1B
split-complementary
#121F3E #3E1B12 #353E12
monochromatic
#070C18 #070C18 #121F3E #20376D #2E4E9D

Accessibility & contrast

On white

16.26
#121F3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#121F3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F3E
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F3E#FFFFFF#000000##FFFFFF
##121F3E1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11223F
Deuteranopia (green-blind)
#0A1E3D
Tritanopia (blue-blind)
#00262B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121f3e;
/* rgb */ color: rgb(18, 31, 62);
/* oklch */ color: oklch(24.6% 0.062 265.1);
Tailwind
colors: {
  custom: {
    50: '#555a73',
    500: '#121f3e',
    950: '#000000',
  },
}
SCSS
$custom: #121f3e;
$custom-light: #555a73;
$custom-dark: #000000;
JSON
{
  "hex": "#121f3e",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 62
  },
  "hsl": {
    "h": 222.273,
    "s": 55,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24635,
    "c": 0.06177,
    "h": 265.1
  },
  "luminance": 0.01456
}

Semantic roles & 50–950 ramp

primary
#121F3E
secondary
#776335
accent
#B249DE
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121F3E

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

Preview Lab → · Contrast checker → · Palette generator →

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