#121557#121557

#121557 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.8% C 0.116 H 272.3°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#121557
RGBrgb(18, 21, 87)
HSLhsl(237, 66%, 21%)
HSVhsv(237, 79%, 34%)
CMYKcmyk(79.3%, 75.9%, 0%, 65.9%)
CIE-LABlab(11.64, 24.16, -39.97)
CIE-LCHlch(11.64, 46.71, 301.15°)
OKLaboklab(24.83% 0.0046 -0.1156)
OKLCHoklch(24.83% 0.116 272.3)
XYZxyz(2.2373, 1.3528, 9.1582)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121557 #575412
analogous
#123757 #121557 #311257
triadic
#121557 #571215 #155712
tetradic
#121557 #571237 #575412 #125731
square
#121557 #571237 #575412 #125731
split-complementary
#121557 #573112 #375712
monochromatic
#050619 #080924 #121557 #1C218A #272DBC

Accessibility & contrast

On white

16.53
#121557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#121557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121557
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121557#FFFFFF#000000##FFFFFF
##1215571.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#001B56
Tritanopia (blue-blind)
#002734
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #121557;
/* rgb */ color: rgb(18, 21, 87);
/* oklch */ color: oklch(24.8% 0.116 272.3);
Tailwind
colors: {
  custom: {
    50: '#5d5287',
    500: '#121557',
    950: '#000000',
  },
}
SCSS
$custom: #121557;
$custom-light: #5d5287;
$custom-dark: #000000;
JSON
{
  "hex": "#121557",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 237.391,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.24831,
    "c": 0.11573,
    "h": 272.3
  },
  "luminance": 0.01353
}

Semantic roles & 50–950 ramp

primary
#121557
secondary
#908C35
accent
#E13FE9
background
#F5F4F8
surface
#E9E7F0
border
#C5C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #121557

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

Preview Lab → · Contrast checker → · Palette generator →

#121557 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva