#121856#121856

#121856 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.110 H 271.4°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#121856
RGBrgb(18, 24, 86)
HSLhsl(235, 65%, 20%)
HSVhsv(235, 79%, 34%)
CMYKcmyk(79.1%, 72.1%, 0%, 66.3%)
CIE-LABlab(12.31, 21.65, -38.20)
CIE-LCHlch(12.31, 43.91, 299.55°)
OKLaboklab(25.28% 0.0027 -0.1104)
OKLCHoklch(25.28% 0.11 271.4)
XYZxyz(2.2552, 1.4535, 8.9640)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121856 #565012
analogous
#123A56 #121856 #2E1256
triadic
#121856 #561218 #185612
tetradic
#121856 #56123A #565012 #12562E
square
#121856 #56123A #565012 #12562E
split-complementary
#121856 #562E12 #3A5612
monochromatic
#050719 #070A23 #121856 #1D2689 #2734BB

Accessibility & contrast

On white

16.27
#121856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#121856 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121856
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121856#FFFFFF#000000##FFFFFF
##1218561.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121856;
/* rgb */ color: rgb(18, 24, 86);
/* oklch */ color: oklch(25.3% 0.110 271.4);
Tailwind
colors: {
  custom: {
    50: '#5c5586',
    500: '#121856',
    950: '#000000',
  },
}
SCSS
$custom: #121856;
$custom-light: #5c5586;
$custom-dark: #000000;
JSON
{
  "hex": "#121856",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 86
  },
  "hsl": {
    "h": 234.706,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25283,
    "c": 0.11047,
    "h": 271.4
  },
  "luminance": 0.01454
}

Semantic roles & 50–950 ramp

primary
#121856
secondary
#8F8735
accent
#D93FE8
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #121856

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

Preview Lab → · Contrast checker → · Palette generator →

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