#0C162D#0C162D

#0C162D is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.5% C 0.048 H 264.8°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#0C162D
RGBrgb(12, 22, 45)
HSLhsl(222, 58%, 11%)
HSVhsv(222, 73%, 18%)
CMYKcmyk(73.3%, 51.1%, 0%, 82.4%)
CIE-LABlab(7.60, 4.52, -16.88)
CIE-LCHlch(7.60, 17.47, 285.00°)
OKLaboklab(20.49% -0.0044 -0.0481)
OKLCHoklch(20.49% 0.048 264.8)
XYZxyz(0.9120, 0.8414, 2.5965)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C162D #2D230C
analogous
#0C262D #0C162D #120C2D
triadic
#0C162D #2D0C16 #162D0C
tetradic
#0C162D #2D0C26 #2D230C #0C2D12
square
#0C162D #2D0C26 #2D230C #0C2D12
split-complementary
#0C162D #2D120C #262D0C
monochromatic
#060C18 #060C18 #0C162D #192E5D #26458E

Accessibility & contrast

On white

17.98
#0C162D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0C162D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C162D
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C162D#FFFFFF#000000##FFFFFF
##0C162D1.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C182E
Deuteranopia (green-blind)
#07152D
Tritanopia (blue-blind)
#001B1F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0c162d;
/* rgb */ color: rgb(12, 22, 45);
/* oklch */ color: oklch(20.5% 0.048 264.8);
Tailwind
colors: {
  custom: {
    50: '#4e5266',
    500: '#0c162d',
    950: '#000000',
  },
}
SCSS
$custom: #0c162d;
$custom-light: #4e5266;
$custom-dark: #000000;
JSON
{
  "hex": "#0c162d",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 45
  },
  "hsl": {
    "h": 221.818,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.20493,
    "c": 0.04826,
    "h": 264.8
  },
  "luminance": 0.00841
}

Semantic roles & 50–950 ramp

primary
#0C162D
secondary
#69562C
accent
#B247E1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0C162D

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

Preview Lab → · Contrast checker → · Palette generator →

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