#121D5A#121D5A

#121D5A is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.110 H 269.4°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#121D5A
RGBrgb(18, 29, 90)
HSLhsl(231, 67%, 21%)
HSVhsv(231, 80%, 35%)
CMYKcmyk(80%, 67.8%, 0%, 64.7%)
CIE-LABlab(14.09, 19.67, -37.98)
CIE-LCHlch(14.09, 42.77, 297.38°)
OKLaboklab(26.71% -0.0011 -0.1098)
OKLCHoklch(26.71% 0.11 269.4)
XYZxyz(2.5336, 1.7452, 9.8742)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D5A #5A4F12
analogous
#12415A #121D5A #2B125A
triadic
#121D5A #5A121D #1D5A12
tetradic
#121D5A #5A1241 #5A4F12 #125A2B
square
#121D5A #5A1241 #5A4F12 #125A2B
split-complementary
#121D5A #5A2B12 #415A12
monochromatic
#05081A #080D27 #121D5A #1C2D8D #263EC0

Accessibility & contrast

On white

15.56
#121D5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#121D5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121D5A
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D5A#FFFFFF#000000##FFFFFF
##121D5A1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#002D38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121d5a;
/* rgb */ color: rgb(18, 29, 90);
/* oklch */ color: oklch(26.7% 0.110 269.4);
Tailwind
colors: {
  custom: {
    50: '#5d5889',
    500: '#121d5a',
    950: '#000000',
  },
}
SCSS
$custom: #121d5a;
$custom-light: #5d5889;
$custom-dark: #000000;
JSON
{
  "hex": "#121d5a",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 90
  },
  "hsl": {
    "h": 230.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26711,
    "c": 0.10977,
    "h": 269.4
  },
  "luminance": 0.01746
}

Semantic roles & 50–950 ramp

primary
#121D5A
secondary
#938435
accent
#CF3EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121D5A

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

Preview Lab → · Contrast checker → · Palette generator →

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