#0C164D#0C164D

#0C164D is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.6% C 0.102 H 268.8°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#0C164D
RGBrgb(12, 22, 77)
HSLhsl(231, 73%, 17%)
HSVhsv(231, 84%, 30%)
CMYKcmyk(84.4%, 71.4%, 0%, 69.8%)
CIE-LABlab(10.47, 18.64, -35.08)
CIE-LCHlch(10.47, 39.73, 297.99°)
OKLaboklab(23.55% -0.0021 -0.1015)
OKLCHoklch(23.55% 0.102 268.8)
XYZxyz(1.7776, 1.1876, 7.1553)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C164D #4D430C
analogous
#0C374D #0C164D #220C4D
triadic
#0C164D #4D0C16 #164D0C
tetradic
#0C164D #4D0C37 #4D430C #0C4D22
square
#0C164D #4D0C37 #4D430C #0C4D22
split-complementary
#0C164D #4D220C #374D0C
monochromatic
#04081A #04081A #0C164D #142582 #1D34B7

Accessibility & contrast

On white

16.97
#0C164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#0C164D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C164D
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C164D#FFFFFF#000000##FFFFFF
##0C164D1.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00194C
Tritanopia (blue-blind)
#00252F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c164d;
/* rgb */ color: rgb(12, 22, 77);
/* oklch */ color: oklch(23.6% 0.102 268.8);
Tailwind
colors: {
  custom: {
    50: '#58537f',
    500: '#0c164d',
    950: '#000000',
  },
}
SCSS
$custom: #0c164d;
$custom-light: #58537f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c164d",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 230.769,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23552,
    "c": 0.1015,
    "h": 268.8
  },
  "luminance": 0.01188
}

Semantic roles & 50–950 ramp

primary
#0C164D
secondary
#897A2C
accent
#D338F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C164D

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

Preview Lab → · Contrast checker → · Palette generator →

#0C164D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva