#121B4F#121B4F

#121B4F is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.096 H 270.4°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#121B4F
RGBrgb(18, 27, 79)
HSLhsl(231, 63%, 19%)
HSVhsv(231, 77%, 31%)
CMYKcmyk(77.2%, 65.8%, 0%, 69%)
CIE-LABlab(12.46, 16.56, -33.18)
CIE-LCHlch(12.46, 37.08, 296.52°)
OKLaboklab(25.18% 0.0007 -0.0957)
OKLCHoklch(25.18% 0.096 270.4)
XYZxyz(2.0522, 1.4768, 7.5725)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B4F #4F4612
analogous
#123A4F #121B4F #28124F
triadic
#121B4F #4F121B #1B4F12
tetradic
#121B4F #4F123A #4F4612 #124F28
square
#121B4F #4F123A #4F4612 #124F28
split-complementary
#121B4F #4F2812 #3A4F12
monochromatic
#060919 #070A1D #121B4F #1D2C81 #293DB3

Accessibility & contrast

On white

16.21
#121B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#121B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B4F
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B4F#FFFFFF#000000##FFFFFF
##121B4F1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121b4f;
/* rgb */ color: rgb(18, 27, 79);
/* oklch */ color: oklch(25.2% 0.096 270.4);
Tailwind
colors: {
  custom: {
    50: '#5a5781',
    500: '#121b4f',
    950: '#000000',
  },
}
SCSS
$custom: #121b4f;
$custom-light: #5a5781;
$custom-dark: #000000;
JSON
{
  "hex": "#121b4f",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 79
  },
  "hsl": {
    "h": 231.148,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25179,
    "c": 0.09571,
    "h": 270.4
  },
  "luminance": 0.01477
}

Semantic roles & 50–950 ramp

primary
#121B4F
secondary
#887C35
accent
#CE42E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #121B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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