#121847#121847

#121847 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.7% C 0.087 H 272.3°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#121847
RGBrgb(18, 24, 71)
HSLhsl(233, 60%, 17%)
HSVhsv(233, 75%, 28%)
CMYKcmyk(74.6%, 66.2%, 0%, 72.2%)
CIE-LABlab(10.82, 15.47, -30.31)
CIE-LCHlch(10.82, 34.03, 297.03°)
OKLaboklab(23.73% 0.0036 -0.0873)
OKLCHoklch(23.73% 0.087 272.3)
XYZxyz(1.7130, 1.2366, 6.1084)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121847 #474112
analogous
#123247 #121847 #271247
triadic
#121847 #471218 #184712
tetradic
#121847 #471232 #474112 #124727
square
#121847 #471232 #474112 #124727
split-complementary
#121847 #472712 #324712
monochromatic
#060818 #060818 #121847 #1E2978 #2B39A9

Accessibility & contrast

On white

16.84
#121847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#121847 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121847
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121847#FFFFFF#000000##FFFFFF
##1218471.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#001B46
Tritanopia (blue-blind)
#00242C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121847;
/* rgb */ color: rgb(18, 24, 71);
/* oklch */ color: oklch(23.7% 0.087 272.3);
Tailwind
colors: {
  custom: {
    50: '#58547b',
    500: '#121847',
    950: '#000000',
  },
}
SCSS
$custom: #121847;
$custom-light: #58547b;
$custom-dark: #000000;
JSON
{
  "hex": "#121847",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 71
  },
  "hsl": {
    "h": 233.208,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23733,
    "c": 0.0874,
    "h": 272.3
  },
  "luminance": 0.01237
}

Semantic roles & 50–950 ramp

primary
#121847
secondary
#807835
accent
#D145E3
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040209
muted
#79787B

Preview Lab

Preview with #121847

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

Preview Lab → · Contrast checker → · Palette generator →

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