#0C164F#0C164F

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

Color values

HEX#0C164F
RGBrgb(12, 22, 79)
HSLhsl(231, 74%, 18%)
HSVhsv(231, 85%, 31%)
CMYKcmyk(84.8%, 72.2%, 0%, 69%)
CIE-LABlab(10.68, 19.49, -36.11)
CIE-LCHlch(10.68, 41.03, 298.36°)
OKLaboklab(23.77% -0.0022 -0.1045)
OKLCHoklch(23.77% 0.105 268.8)
XYZxyz(1.8493, 1.2163, 7.5329)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C164F #4F450C
analogous
#0C374F #0C164F #240C4F
triadic
#0C164F #4F0C16 #164F0C
tetradic
#0C164F #4F0C37 #4F450C #0C4F24
square
#0C164F #4F0C37 #4F450C #0C4F24
split-complementary
#0C164F #4F240C #374F0C
monochromatic
#04071B #04071B #0C164F #142584 #1C34B9

Accessibility & contrast

On white

16.89
#0C164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C164F
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C164F#FFFFFF#000000##FFFFFF
##0C164F1.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001A4E
Tritanopia (blue-blind)
#002530
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0c164f;
/* rgb */ color: rgb(12, 22, 79);
/* oklch */ color: oklch(23.8% 0.105 268.8);
Tailwind
colors: {
  custom: {
    50: '#585381',
    500: '#0c164f',
    950: '#000000',
  },
}
SCSS
$custom: #0c164f;
$custom-light: #585381;
$custom-dark: #000000;
JSON
{
  "hex": "#0c164f",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 231.045,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.23771,
    "c": 0.10452,
    "h": 268.8
  },
  "luminance": 0.01216
}

Semantic roles & 50–950 ramp

primary
#0C164F
secondary
#8B7C2C
accent
#D538F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C164F

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

Preview Lab → · Contrast checker → · Palette generator →

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