#121D5F#121D5F

#121D5F is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.2% C 0.117 H 269.3°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#121D5F
RGBrgb(18, 29, 95)
HSLhsl(231, 68%, 22%)
HSVhsv(231, 81%, 37%)
CMYKcmyk(81.1%, 69.5%, 0%, 62.7%)
CIE-LABlab(14.59, 21.73, -40.51)
CIE-LCHlch(14.59, 45.96, 298.21°)
OKLaboklab(27.23% -0.0014 -0.1172)
OKLCHoklch(27.23% 0.117 269.3)
XYZxyz(2.7537, 1.8333, 11.0330)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D5F #5F5412
analogous
#12435F #121D5F #2E125F
triadic
#121D5F #5F121D #1D5F12
tetradic
#121D5F #5F1243 #5F5412 #125F2E
square
#121D5F #5F1243 #5F5412 #125F2E
split-complementary
#121D5F #5F2E12 #435F12
monochromatic
#05081A #080D2C #121D5F #1C2D92 #253CC6

Accessibility & contrast

On white

15.36
#121D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121D5F
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D5F#FFFFFF#000000##FFFFFF
##121D5F1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#002E3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #121d5f;
/* rgb */ color: rgb(18, 29, 95);
/* oklch */ color: oklch(27.2% 0.117 269.3);
Tailwind
colors: {
  custom: {
    50: '#5e598d',
    500: '#121d5f',
    950: '#000000',
  },
}
SCSS
$custom: #121d5f;
$custom-light: #5e598d;
$custom-dark: #000000;
JSON
{
  "hex": "#121d5f",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 95
  },
  "hsl": {
    "h": 231.429,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2723,
    "c": 0.11718,
    "h": 269.3
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#121D5F
secondary
#978936
accent
#D23DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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