#0C164A#0C164A

#0C164A is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.2% C 0.097 H 268.9°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#0C164A
RGBrgb(12, 22, 74)
HSLhsl(230, 72%, 17%)
HSVhsv(230, 84%, 29%)
CMYKcmyk(83.8%, 70.3%, 0%, 71%)
CIE-LABlab(10.15, 17.36, -33.51)
CIE-LCHlch(10.15, 37.74, 297.38°)
OKLaboklab(23.23% -0.0019 -0.0969)
OKLCHoklch(23.23% 0.097 268.9)
XYZxyz(1.6741, 1.1462, 6.6102)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C164A #4A400C
analogous
#0C354A #0C164A #210C4A
triadic
#0C164A #4A0C16 #164A0C
tetradic
#0C164A #4A0C35 #4A400C #0C4A21
square
#0C164A #4A0C35 #4A400C #0C4A21
split-complementary
#0C164A #4A210C #354A0C
monochromatic
#04081A #04081A #0C164A #15267F #1D35B3

Accessibility & contrast

On white

17.08
#0C164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C164A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C164A
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C164A#FFFFFF#000000##FFFFFF
##0C164A1.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001949
Tritanopia (blue-blind)
#00242D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c164a;
/* rgb */ color: rgb(12, 22, 74);
/* oklch */ color: oklch(23.2% 0.097 268.9);
Tailwind
colors: {
  custom: {
    50: '#57527d',
    500: '#0c164a',
    950: '#000000',
  },
}
SCSS
$custom: #0c164a;
$custom-light: #57527d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c164a",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 230.323,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.23228,
    "c": 0.09692,
    "h": 268.9
  },
  "luminance": 0.01146
}

Semantic roles & 50–950 ramp

primary
#0C164A
secondary
#86772C
accent
#D139EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C164A

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

Preview Lab → · Contrast checker → · Palette generator →

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