#121B5B#121B5B

#121B5B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.114 H 270.1°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#121B5B
RGBrgb(18, 27, 91)
HSLhsl(233, 67%, 21%)
HSVhsv(233, 80%, 36%)
CMYKcmyk(80.2%, 70.3%, 0%, 64.3%)
CIE-LABlab(13.64, 21.53, -39.39)
CIE-LCHlch(13.64, 44.89, 298.66°)
OKLaboklab(26.41% 0.0002 -0.1139)
OKLCHoklch(26.41% 0.114 270.1)
XYZxyz(2.5291, 1.6675, 10.0841)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B5B #5B5212
analogous
#12405B #121B5B #2E125B
triadic
#121B5B #5B121B #1B5B12
tetradic
#121B5B #5B1240 #5B5212 #125B2E
square
#121B5B #5B1240 #5B5212 #125B2E
split-complementary
#121B5B #5B2E12 #405B12
monochromatic
#05081A #080C28 #121B5B #1C2A8E #2639C1

Accessibility & contrast

On white

15.75
#121B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#121B5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B5B
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B5B#FFFFFF#000000##FFFFFF
##121B5B1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#001F5A
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121b5b;
/* rgb */ color: rgb(18, 27, 91);
/* oklch */ color: oklch(26.4% 0.114 270.1);
Tailwind
colors: {
  custom: {
    50: '#5d578a',
    500: '#121b5b',
    950: '#000000',
  },
}
SCSS
$custom: #121b5b;
$custom-light: #5d578a;
$custom-dark: #000000;
JSON
{
  "hex": "#121b5b",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 232.603,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26409,
    "c": 0.11392,
    "h": 270.1
  },
  "luminance": 0.01668
}

Semantic roles & 50–950 ramp

primary
#121B5B
secondary
#938835
accent
#D53EEA
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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