#121F3F#121F3F

#121F3F is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.7% C 0.063 H 265.4°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#121F3F
RGBrgb(18, 31, 63)
HSLhsl(223, 56%, 16%)
HSVhsv(223, 71%, 25%)
CMYKcmyk(71.4%, 50.8%, 0%, 75.3%)
CIE-LABlab(12.40, 6.70, -22.17)
CIE-LCHlch(12.40, 23.16, 286.81°)
OKLaboklab(24.71% -0.0051 -0.0633)
OKLCHoklch(24.71% 0.063 265.4)
XYZxyz(1.6363, 1.4673, 4.8986)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F3F #3F3212
analogous
#12353F #121F3F #1B123F
triadic
#121F3F #3F121F #1F3F12
tetradic
#121F3F #3F1235 #3F3212 #123F1B
square
#121F3F #3F1235 #3F3212 #123F1B
split-complementary
#121F3F #3F1B12 #353F12
monochromatic
#070C18 #070C18 #121F3F #20366F #2D4E9E

Accessibility & contrast

On white

16.24
#121F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121F3F
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F3F#FFFFFF#000000##FFFFFF
##121F3F1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102240
Deuteranopia (green-blind)
#091E3E
Tritanopia (blue-blind)
#00262B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121f3f;
/* rgb */ color: rgb(18, 31, 63);
/* oklch */ color: oklch(24.7% 0.063 265.4);
Tailwind
colors: {
  custom: {
    50: '#555a74',
    500: '#121f3f',
    950: '#000000',
  },
}
SCSS
$custom: #121f3f;
$custom-light: #555a74;
$custom-dark: #000000;
JSON
{
  "hex": "#121f3f",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 63
  },
  "hsl": {
    "h": 222.667,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24713,
    "c": 0.06347,
    "h": 265.4
  },
  "luminance": 0.01467
}

Semantic roles & 50–950 ramp

primary
#121F3F
secondary
#786535
accent
#B449DF
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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