#12164A#12164A

#12164A is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.6% C 0.095 H 273.2°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#12164A
RGBrgb(18, 22, 74)
HSLhsl(236, 61%, 18%)
HSVhsv(236, 76%, 29%)
CMYKcmyk(75.7%, 70.3%, 0%, 71%)
CIE-LABlab(10.53, 18.21, -32.88)
CIE-LCHlch(10.53, 37.58, 298.99°)
OKLaboklab(23.61% 0.0053 -0.0949)
OKLCHoklch(23.61% 0.095 273.2)
XYZxyz(1.7720, 1.1967, 6.6148)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12164A #4A4612
analogous
#12324A #12164A #2A124A
triadic
#12164A #4A1216 #164A12
tetradic
#12164A #4A1232 #4A4612 #124A2A
square
#12164A #4A1232 #4A4612 #124A2A
split-complementary
#12164A #4A2A12 #324A12
monochromatic
#060719 #060719 #12164A #1E257B #2A33AC

Accessibility & contrast

On white

16.94
#12164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#12164A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12164A
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12164A#FFFFFF#000000##FFFFFF
##12164A1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001A49
Tritanopia (blue-blind)
#00232D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #12164a;
/* rgb */ color: rgb(18, 22, 74);
/* oklch */ color: oklch(23.6% 0.095 273.2);
Tailwind
colors: {
  custom: {
    50: '#59537d',
    500: '#12164a',
    950: '#000000',
  },
}
SCSS
$custom: #12164a;
$custom-light: #59537d;
$custom-dark: #000000;
JSON
{
  "hex": "#12164a",
  "rgb": {
    "r": 18,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 235.714,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23608,
    "c": 0.09503,
    "h": 273.2
  },
  "luminance": 0.01197
}

Semantic roles & 50–950 ramp

primary
#12164A
secondary
#837D35
accent
#D944E4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12164A

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

Preview Lab → · Contrast checker → · Palette generator →

#12164A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva