#121D54#121D54

#121D54 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.1% C 0.101 H 269.4°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#121D54
RGBrgb(18, 29, 84)
HSLhsl(230, 65%, 20%)
HSVhsv(230, 79%, 33%)
CMYKcmyk(78.6%, 65.5%, 0%, 67.1%)
CIE-LABlab(13.51, 17.16, -34.87)
CIE-LCHlch(13.51, 38.86, 296.21°)
OKLaboklab(26.11% -0.001 -0.1006)
OKLCHoklch(26.11% 0.101 269.4)
XYZxyz(2.2885, 1.6472, 8.5831)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D54 #544912
analogous
#123E54 #121D54 #281254
triadic
#121D54 #54121D #1D5412
tetradic
#121D54 #54123E #544912 #125428
square
#121D54 #54123E #544912 #125428
split-complementary
#121D54 #542812 #3E5412
monochromatic
#050919 #070C22 #121D54 #1D2E86 #2840B9

Accessibility & contrast

On white

15.80
#121D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#121D54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121D54
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D54#FFFFFF#000000##FFFFFF
##121D541.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#002B35
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121d54;
/* rgb */ color: rgb(18, 29, 84);
/* oklch */ color: oklch(26.1% 0.101 269.4);
Tailwind
colors: {
  custom: {
    50: '#5b5885',
    500: '#121d54',
    950: '#000000',
  },
}
SCSS
$custom: #121d54;
$custom-light: #5b5885;
$custom-dark: #000000;
JSON
{
  "hex": "#121d54",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 84
  },
  "hsl": {
    "h": 230,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.26108,
    "c": 0.10065,
    "h": 269.4
  },
  "luminance": 0.01647
}

Semantic roles & 50–950 ramp

primary
#121D54
secondary
#8D7E35
accent
#CC40E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121D54

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

Preview Lab → · Contrast checker → · Palette generator →

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