#0C162F#0C162F

#0C162F is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.7% C 0.052 H 265.7°. Best body text is #FFFFFF at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#0C162F
RGBrgb(12, 22, 47)
HSLhsl(223, 59%, 12%)
HSVhsv(223, 74%, 18%)
CMYKcmyk(74.5%, 53.2%, 0%, 81.6%)
CIE-LABlab(7.74, 5.42, -18.13)
CIE-LCHlch(7.74, 18.92, 286.65°)
OKLaboklab(20.65% -0.0039 -0.0517)
OKLCHoklch(20.65% 0.052 265.7)
XYZxyz(0.9514, 0.8571, 2.8041)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C162F #2F250C
analogous
#0C282F #0C162F #140C2F
triadic
#0C162F #2F0C16 #162F0C
tetradic
#0C162F #2F0C28 #2F250C #0C2F14
square
#0C162F #2F0C28 #2F250C #0C2F14
split-complementary
#0C162F #2F140C #282F0C
monochromatic
#060B18 #060B18 #0C162F #182D60 #254491

Accessibility & contrast

On white

17.93
#0C162F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C162F
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C162F#FFFFFF#000000##FFFFFF
##0C162F1.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1930
Deuteranopia (green-blind)
#06162E
Tritanopia (blue-blind)
#001C20
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0c162f;
/* rgb */ color: rgb(12, 22, 47);
/* oklch */ color: oklch(20.7% 0.052 265.7);
Tailwind
colors: {
  custom: {
    50: '#4f5267',
    500: '#0c162f',
    950: '#000000',
  },
}
SCSS
$custom: #0c162f;
$custom-light: #4f5267;
$custom-dark: #000000;
JSON
{
  "hex": "#0c162f",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 47
  },
  "hsl": {
    "h": 222.857,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20653,
    "c": 0.05185,
    "h": 265.7
  },
  "luminance": 0.00857
}

Semantic roles & 50–950 ramp

primary
#0C162F
secondary
#6B592C
accent
#B645E3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0C162F

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

Preview Lab → · Contrast checker → · Palette generator →

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