#121F5B#121F5B

#121F5B is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.109 H 268.6°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#121F5B
RGBrgb(18, 31, 91)
HSLhsl(229, 67%, 21%)
HSVhsv(229, 80%, 36%)
CMYKcmyk(80.2%, 65.9%, 0%, 64.3%)
CIE-LABlab(14.75, 18.61, -37.56)
CIE-LCHlch(14.75, 41.92, 296.36°)
OKLaboklab(27.23% -0.0027 -0.1085)
OKLCHoklch(27.23% 0.109 268.6)
XYZxyz(2.6271, 1.8636, 10.1168)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F5B #5B4E12
analogous
#12445B #121F5B #2A125B
triadic
#121F5B #5B121F #1F5B12
tetradic
#121F5B #5B1244 #5B4E12 #125B2A
square
#121F5B #5B1244 #5B4E12 #125B2A
split-complementary
#121F5B #5B2A12 #445B12
monochromatic
#05091A #080E28 #121F5B #1C308E #2642C1

Accessibility & contrast

On white

15.30
#121F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#121F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F5B
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F5B#FFFFFF#000000##FFFFFF
##121F5B1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #121f5b;
/* rgb */ color: rgb(18, 31, 91);
/* oklch */ color: oklch(27.2% 0.109 268.6);
Tailwind
colors: {
  custom: {
    50: '#5d5a8a',
    500: '#121f5b',
    950: '#000000',
  },
}
SCSS
$custom: #121f5b;
$custom-light: #5d5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#121f5b",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 91
  },
  "hsl": {
    "h": 229.315,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27233,
    "c": 0.10855,
    "h": 268.6
  },
  "luminance": 0.01864
}

Semantic roles & 50–950 ramp

primary
#121F5B
secondary
#938335
accent
#CB3EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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