#0C162C#0C162C

#0C162C is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.4% C 0.046 H 264.3°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#0C162C
RGBrgb(12, 22, 44)
HSLhsl(221, 57%, 11%)
HSVhsv(221, 73%, 17%)
CMYKcmyk(72.7%, 50%, 0%, 82.7%)
CIE-LABlab(7.53, 4.08, -16.24)
CIE-LCHlch(7.53, 16.75, 284.08°)
OKLaboklab(20.42% -0.0046 -0.0462)
OKLCHoklch(20.42% 0.046 264.3)
XYZxyz(0.8930, 0.8338, 2.4963)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C162C #2C220C
analogous
#0C262C #0C162C #120C2C
triadic
#0C162C #2C0C16 #162C0C
tetradic
#0C162C #2C0C26 #2C220C #0C2C12
square
#0C162C #2C0C26 #2C220C #0C2C12
split-complementary
#0C162C #2C120C #262C0C
monochromatic
#070C18 #070C18 #0C162C #192E5C #26468C

Accessibility & contrast

On white

18.00
#0C162C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C162C
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C162C#FFFFFF#000000##FFFFFF
##0C162C1.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C182D
Deuteranopia (green-blind)
#08152C
Tritanopia (blue-blind)
#001B1E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0c162c;
/* rgb */ color: rgb(12, 22, 44);
/* oklch */ color: oklch(20.4% 0.046 264.3);
Tailwind
colors: {
  custom: {
    50: '#4e5265',
    500: '#0c162c',
    950: '#000000',
  },
}
SCSS
$custom: #0c162c;
$custom-light: #4e5265;
$custom-dark: #000000;
JSON
{
  "hex": "#0c162c",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 44
  },
  "hsl": {
    "h": 221.25,
    "s": 57.143,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20415,
    "c": 0.04645,
    "h": 264.3
  },
  "luminance": 0.00834
}

Semantic roles & 50–950 ramp

primary
#0C162C
secondary
#67552C
accent
#B147E0
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020205
muted
#78787A

Preview Lab

Preview with #0C162C

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

Preview Lab → · Contrast checker → · Palette generator →

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