#12164E#12164E

#12164E is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.0% C 0.101 H 272.8°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#12164E
RGBrgb(18, 22, 78)
HSLhsl(236, 63%, 19%)
HSVhsv(236, 77%, 31%)
CMYKcmyk(76.9%, 71.8%, 0%, 69.4%)
CIE-LABlab(10.94, 19.85, -34.98)
CIE-LCHlch(10.94, 40.22, 299.57°)
OKLaboklab(24.03% 0.005 -0.101)
OKLCHoklch(24.03% 0.101 272.8)
XYZxyz(1.9110, 1.2523, 7.3473)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12164E #4E4A12
analogous
#12344E #12164E #2C124E
triadic
#12164E #4E1216 #164E12
tetradic
#12164E #4E1234 #4E4A12 #124E2C
square
#12164E #4E1234 #4E4A12 #124E2C
split-complementary
#12164E #4E2C12 #344E12
monochromatic
#060719 #07081C #12164E #1D2480 #2932B1

Accessibility & contrast

On white

16.79
#12164E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#12164E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12164E
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12164E#FFFFFF#000000##FFFFFF
##12164E1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#001B4D
Tritanopia (blue-blind)
#00252F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #12164e;
/* rgb */ color: rgb(18, 22, 78);
/* oklch */ color: oklch(24.0% 0.101 272.8);
Tailwind
colors: {
  custom: {
    50: '#5a5380',
    500: '#12164e',
    950: '#000000',
  },
}
SCSS
$custom: #12164e;
$custom-light: #5a5380;
$custom-dark: #000000;
JSON
{
  "hex": "#12164e",
  "rgb": {
    "r": 18,
    "g": 22,
    "b": 78
  },
  "hsl": {
    "h": 236,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24029,
    "c": 0.10116,
    "h": 272.8
  },
  "luminance": 0.01252
}

Semantic roles & 50–950 ramp

primary
#12164E
secondary
#878235
accent
#DB42E6
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12164E

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

Preview Lab → · Contrast checker → · Palette generator →

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