#0C164C#0C164C

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

Color values

HEX#0C164C
RGBrgb(12, 22, 76)
HSLhsl(231, 73%, 17%)
HSVhsv(231, 84%, 30%)
CMYKcmyk(84.2%, 71.1%, 0%, 70.2%)
CIE-LABlab(10.36, 18.22, -34.56)
CIE-LCHlch(10.36, 39.07, 297.80°)
OKLaboklab(23.44% -0.002 -0.1)
OKLCHoklch(23.44% 0.1 268.8)
XYZxyz(1.7426, 1.1736, 6.9708)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C164C #4C420C
analogous
#0C364C #0C164C #220C4C
triadic
#0C164C #4C0C16 #164C0C
tetradic
#0C164C #4C0C36 #4C420C #0C4C22
square
#0C164C #4C0C36 #4C420C #0C4C22
split-complementary
#0C164C #4C220C #364C0C
monochromatic
#04081A #04081A #0C164C #142581 #1D35B6

Accessibility & contrast

On white

17.01
#0C164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C164C
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C164C#FFFFFF#000000##FFFFFF
##0C164C1.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#00194B
Tritanopia (blue-blind)
#00242E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c164c;
/* rgb */ color: rgb(12, 22, 76);
/* oklch */ color: oklch(23.4% 0.100 268.8);
Tailwind
colors: {
  custom: {
    50: '#57537f',
    500: '#0c164c',
    950: '#000000',
  },
}
SCSS
$custom: #0c164c;
$custom-light: #57537f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c164c",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 230.625,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.23443,
    "c": 0.09998,
    "h": 268.8
  },
  "luminance": 0.01174
}

Semantic roles & 50–950 ramp

primary
#0C164C
secondary
#88792C
accent
#D338EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C164C

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

Preview Lab → · Contrast checker → · Palette generator →

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