#121C56#121C56

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

Color values

HEX#121C56
RGBrgb(18, 28, 86)
HSLhsl(231, 65%, 20%)
HSVhsv(231, 79%, 34%)
CMYKcmyk(79.1%, 67.4%, 0%, 66.3%)
CIE-LABlab(13.42, 18.74, -36.38)
CIE-LCHlch(13.42, 40.93, 297.25°)
OKLaboklab(26.09% -0.0002 -0.1051)
OKLCHoklch(26.09% 0.105 269.9)
XYZxyz(2.3438, 1.6307, 8.9935)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121C56 #564C12
analogous
#123E56 #121C56 #2A1256
triadic
#121C56 #56121C #1C5612
tetradic
#121C56 #56123E #564C12 #12562A
square
#121C56 #56123E #564C12 #12562A
split-complementary
#121C56 #562A12 #3E5612
monochromatic
#050819 #070C23 #121C56 #1D2C89 #273DBB

Accessibility & contrast

On white

15.83
#121C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121C56
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121C56#FFFFFF#000000##FFFFFF
##121C561.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#001F55
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #121c56;
/* rgb */ color: rgb(18, 28, 86);
/* oklch */ color: oklch(26.1% 0.105 269.9);
Tailwind
colors: {
  custom: {
    50: '#5c5886',
    500: '#121c56',
    950: '#000000',
  },
}
SCSS
$custom: #121c56;
$custom-light: #5c5886;
$custom-dark: #000000;
JSON
{
  "hex": "#121c56",
  "rgb": {
    "r": 18,
    "g": 28,
    "b": 86
  },
  "hsl": {
    "h": 231.176,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26094,
    "c": 0.1051,
    "h": 269.9
  },
  "luminance": 0.01631
}

Semantic roles & 50–950 ramp

primary
#121C56
secondary
#8F8235
accent
#D03FE8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121C56

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

Preview Lab → · Contrast checker → · Palette generator →

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