#121456#121456

#121456 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.5% C 0.116 H 272.7°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#121456
RGBrgb(18, 20, 86)
HSLhsl(238, 65%, 20%)
HSVhsv(238, 79%, 34%)
CMYKcmyk(79.1%, 76.7%, 0%, 66.3%)
CIE-LABlab(11.28, 24.45, -39.89)
CIE-LCHlch(11.28, 46.79, 301.51°)
OKLaboklab(24.54% 0.0054 -0.1154)
OKLCHoklch(24.54% 0.116 272.7)
XYZxyz(2.1788, 1.3006, 8.9385)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121456 #565412
analogous
#123656 #121456 #321256
triadic
#121456 #561214 #145612
tetradic
#121456 #561236 #565412 #125632
square
#121456 #561236 #565412 #125632
split-complementary
#121456 #563212 #365612
monochromatic
#050619 #070823 #121456 #1D2089 #272CBB

Accessibility & contrast

On white

16.66
#121456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#121456 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121456
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121456#FFFFFF#000000##FFFFFF
##1214561.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#001B55
Tritanopia (blue-blind)
#002633
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #121456;
/* rgb */ color: rgb(18, 20, 86);
/* oklch */ color: oklch(24.5% 0.116 272.7);
Tailwind
colors: {
  custom: {
    50: '#5d5286',
    500: '#121456',
    950: '#000000',
  },
}
SCSS
$custom: #121456;
$custom-light: #5d5286;
$custom-dark: #000000;
JSON
{
  "hex": "#121456",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 238.235,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.24538,
    "c": 0.11552,
    "h": 272.7
  },
  "luminance": 0.01301
}

Semantic roles & 50–950 ramp

primary
#121456
secondary
#8F8C35
accent
#E33FE8
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #121456

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

Preview Lab → · Contrast checker → · Palette generator →

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