#121156#121156

#121156 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.0% C 0.119 H 273.4°. Best body text is #FFFFFF at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#121156
RGBrgb(18, 17, 86)
HSLhsl(241, 67%, 20%)
HSVhsv(241, 80%, 34%)
CMYKcmyk(79.1%, 80.2%, 0%, 66.3%)
CIE-LABlab(10.57, 26.44, -41.06)
CIE-LCHlch(10.57, 48.84, 302.77°)
OKLaboklab(24.03% 0.0072 -0.1188)
OKLCHoklch(24.03% 0.119 273.4)
XYZxyz(2.1291, 1.2012, 8.9219)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121156 #555611
analogous
#113256 #121156 #351156
triadic
#121156 #561211 #115612
tetradic
#121156 #561132 #555611 #115635
square
#121156 #561132 #555611 #115635
split-complementary
#121156 #563511 #325611
monochromatic
#05051A #070723 #121156 #1D1B89 #2725BC

Accessibility & contrast

On white

16.93
#121156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#121156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121156
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121156#FFFFFF#000000##FFFFFF
##1211561.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002058
Deuteranopia (green-blind)
#001955
Tritanopia (blue-blind)
#002532
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121156;
/* rgb */ color: rgb(18, 17, 86);
/* oklch */ color: oklch(24.0% 0.119 273.4);
Tailwind
colors: {
  custom: {
    50: '#5d5086',
    500: '#121156',
    950: '#000000',
  },
}
SCSS
$custom: #121156;
$custom-light: #5d5086;
$custom-dark: #000000;
JSON
{
  "hex": "#121156",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 240.87,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.24029,
    "c": 0.11902,
    "h": 273.4
  },
  "luminance": 0.01201
}

Semantic roles & 50–950 ramp

primary
#121156
secondary
#8E8F34
accent
#EA3EE7
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #121156

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

Preview Lab → · Contrast checker → · Palette generator →

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