#121756#121756

#121756 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.1% C 0.112 H 271.8°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#121756
RGBrgb(18, 23, 86)
HSLhsl(236, 65%, 20%)
HSVhsv(236, 79%, 34%)
CMYKcmyk(79.1%, 73.3%, 0%, 66.3%)
CIE-LABlab(12.04, 22.37, -38.63)
CIE-LCHlch(12.04, 44.64, 300.07°)
OKLaboklab(25.09% 0.0034 -0.1117)
OKLCHoklch(25.09% 0.112 271.8)
XYZxyz(2.2350, 1.4130, 8.9573)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121756 #565112
analogous
#123956 #121756 #2F1256
triadic
#121756 #561217 #175612
tetradic
#121756 #561239 #565112 #12562F
square
#121756 #561239 #565112 #12562F
split-complementary
#121756 #562F12 #395612
monochromatic
#050719 #070923 #121756 #1D2589 #2732BB

Accessibility & contrast

On white

16.37
#121756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#121756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121756
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121756#FFFFFF#000000##FFFFFF
##1217561.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#001C55
Tritanopia (blue-blind)
#002834
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121756;
/* rgb */ color: rgb(18, 23, 86);
/* oklch */ color: oklch(25.1% 0.112 271.8);
Tailwind
colors: {
  custom: {
    50: '#5c5486',
    500: '#121756',
    950: '#000000',
  },
}
SCSS
$custom: #121756;
$custom-light: #5c5486;
$custom-dark: #000000;
JSON
{
  "hex": "#121756",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 86
  },
  "hsl": {
    "h": 235.588,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.2509,
    "c": 0.11177,
    "h": 271.8
  },
  "luminance": 0.01413
}

Semantic roles & 50–950 ramp

primary
#121756
secondary
#8F8835
accent
#DC3FE8
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #121756

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

Preview Lab → · Contrast checker → · Palette generator →

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