#121C5F#121C5F

#121C5F is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.118 H 269.6°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#121C5F
RGBrgb(18, 28, 95)
HSLhsl(232, 68%, 22%)
HSVhsv(232, 81%, 37%)
CMYKcmyk(81.1%, 70.5%, 0%, 62.7%)
CIE-LABlab(14.32, 22.45, -40.95)
CIE-LCHlch(14.32, 46.70, 298.73°)
OKLaboklab(27.03% -0.0007 -0.1185)
OKLCHoklch(27.03% 0.118 269.6)
XYZxyz(2.7296, 1.7850, 11.0249)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121C5F #5F5512
analogous
#12435F #121C5F #2F125F
triadic
#121C5F #5F121C #1C5F12
tetradic
#121C5F #5F1243 #5F5512 #125F2F
square
#121C5F #5F1243 #5F5512 #125F2F
split-complementary
#121C5F #5F2F12 #435F12
monochromatic
#05081A #080D2C #121C5F #1C2B92 #253AC6

Accessibility & contrast

On white

15.48
#121C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#121C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121C5F
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121C5F#FFFFFF#000000##FFFFFF
##121C5F1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#002E3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121c5f;
/* rgb */ color: rgb(18, 28, 95);
/* oklch */ color: oklch(27.0% 0.118 269.6);
Tailwind
colors: {
  custom: {
    50: '#5e588d',
    500: '#121c5f',
    950: '#000000',
  },
}
SCSS
$custom: #121c5f;
$custom-light: #5e588d;
$custom-dark: #000000;
JSON
{
  "hex": "#121c5f",
  "rgb": {
    "r": 18,
    "g": 28,
    "b": 95
  },
  "hsl": {
    "h": 232.208,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27032,
    "c": 0.11847,
    "h": 269.6
  },
  "luminance": 0.01785
}

Semantic roles & 50–950 ramp

primary
#121C5F
secondary
#978B36
accent
#D43DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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