#121A3F#121A3F

#121A3F is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.5% C 0.071 H 270.8°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#121A3F
RGBrgb(18, 26, 63)
HSLhsl(229, 56%, 16%)
HSVhsv(229, 71%, 25%)
CMYKcmyk(71.4%, 58.7%, 0%, 75.3%)
CIE-LABlab(10.75, 10.56, -24.82)
CIE-LCHlch(10.75, 26.97, 293.05°)
OKLaboklab(23.46% 0.001 -0.0711)
OKLCHoklch(23.46% 0.071 270.8)
XYZxyz(1.5158, 1.2261, 4.8585)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121A3F #3F3712
analogous
#12303F #121A3F #20123F
triadic
#121A3F #3F121A #1A3F12
tetradic
#121A3F #3F1230 #3F3712 #123F20
square
#121A3F #3F1230 #3F3712 #123F20
split-complementary
#121A3F #3F2012 #303F12
monochromatic
#070A18 #070A18 #121A3F #202E6F #2D419E

Accessibility & contrast

On white

16.86
#121A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121A3F
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121A3F#FFFFFF#000000##FFFFFF
##121A3F1.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051F40
Deuteranopia (green-blind)
#001B3E
Tritanopia (blue-blind)
#002329
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121a3f;
/* rgb */ color: rgb(18, 26, 63);
/* oklch */ color: oklch(23.5% 0.071 270.8);
Tailwind
colors: {
  custom: {
    50: '#565674',
    500: '#121a3f',
    950: '#000000',
  },
}
SCSS
$custom: #121a3f;
$custom-light: #565674;
$custom-dark: #000000;
JSON
{
  "hex": "#121a3f",
  "rgb": {
    "r": 18,
    "g": 26,
    "b": 63
  },
  "hsl": {
    "h": 229.333,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23456,
    "c": 0.07115,
    "h": 270.8
  },
  "luminance": 0.01226
}

Semantic roles & 50–950 ramp

primary
#121A3F
secondary
#786C35
accent
#C449DF
background
#F5F5F7
surface
#E9E8ED
border
#C5C4C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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