#121B3F#121B3F

#121B3F is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.7% C 0.070 H 269.8°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#121B3F
RGBrgb(18, 27, 63)
HSLhsl(228, 56%, 16%)
HSVhsv(228, 71%, 25%)
CMYKcmyk(71.4%, 57.1%, 0%, 75.3%)
CIE-LABlab(11.07, 9.78, -24.30)
CIE-LCHlch(11.07, 26.19, 291.93°)
OKLaboklab(23.7% -0.0002 -0.0696)
OKLCHoklch(23.7% 0.07 269.8)
XYZxyz(1.5383, 1.2712, 4.8660)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B3F #3F3612
analogous
#12313F #121B3F #1F123F
triadic
#121B3F #3F121B #1B3F12
tetradic
#121B3F #3F1231 #3F3612 #123F1F
square
#121B3F #3F1231 #3F3612 #123F1F
split-complementary
#121B3F #3F1F12 #313F12
monochromatic
#070A18 #070A18 #121B3F #202F6F #2D449E

Accessibility & contrast

On white

16.74
#121B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121B3F
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B3F#FFFFFF#000000##FFFFFF
##121B3F1.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072040
Deuteranopia (green-blind)
#011C3E
Tritanopia (blue-blind)
#00232A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #121b3f;
/* rgb */ color: rgb(18, 27, 63);
/* oklch */ color: oklch(23.7% 0.070 269.8);
Tailwind
colors: {
  custom: {
    50: '#565674',
    500: '#121b3f',
    950: '#000000',
  },
}
SCSS
$custom: #121b3f;
$custom-light: #565674;
$custom-dark: #000000;
JSON
{
  "hex": "#121b3f",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 63
  },
  "hsl": {
    "h": 228,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23701,
    "c": 0.06959,
    "h": 269.8
  },
  "luminance": 0.01271
}

Semantic roles & 50–950 ramp

primary
#121B3F
secondary
#786B35
accent
#C149DF
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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