#121D5D#121D5D

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

Color values

HEX#121D5D
RGBrgb(18, 29, 93)
HSLhsl(231, 68%, 22%)
HSVhsv(231, 81%, 36%)
CMYKcmyk(80.6%, 68.8%, 0%, 63.5%)
CIE-LABlab(14.39, 20.90, -39.50)
CIE-LCHlch(14.39, 44.69, 297.89°)
OKLaboklab(27.02% -0.0013 -0.1142)
OKLCHoklch(27.02% 0.114 269.4)
XYZxyz(2.6639, 1.7974, 10.5603)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D5D #5D5212
analogous
#12435D #121D5D #2D125D
triadic
#121D5D #5D121D #1D5D12
tetradic
#121D5D #5D1243 #5D5212 #125D2D
square
#121D5D #5D1243 #5D5212 #125D2D
split-complementary
#121D5D #5D2D12 #435D12
monochromatic
#05081A #080D2A #121D5D #1C2D90 #263DC4

Accessibility & contrast

On white

15.45
#121D5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121D5D
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D5D#FFFFFF#000000##FFFFFF
##121D5D1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#002E3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121d5d;
/* rgb */ color: rgb(18, 29, 93);
/* oklch */ color: oklch(27.0% 0.114 269.4);
Tailwind
colors: {
  custom: {
    50: '#5e588c',
    500: '#121d5d',
    950: '#000000',
  },
}
SCSS
$custom: #121d5d;
$custom-light: #5e588c;
$custom-dark: #000000;
JSON
{
  "hex": "#121d5d",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 93
  },
  "hsl": {
    "h": 231.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27021,
    "c": 0.11424,
    "h": 269.4
  },
  "luminance": 0.01798
}

Semantic roles & 50–950 ramp

primary
#121D5D
secondary
#958735
accent
#D13DEA
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121D5D

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

Preview Lab → · Contrast checker → · Palette generator →

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