#0C172F#0C172F

#0C172F is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.9% C 0.050 H 264.0°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#0C172F
RGBrgb(12, 23, 47)
HSLhsl(221, 59%, 12%)
HSVhsv(221, 74%, 18%)
CMYKcmyk(74.5%, 51.1%, 0%, 81.6%)
CIE-LABlab(8.09, 4.63, -17.57)
CIE-LCHlch(8.09, 18.17, 284.78°)
OKLaboklab(20.93% -0.0052 -0.05)
OKLCHoklch(20.93% 0.05 264)
XYZxyz(0.9709, 0.8961, 2.8106)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C172F #2F240C
analogous
#0C292F #0C172F #130C2F
triadic
#0C172F #2F0C17 #172F0C
tetradic
#0C172F #2F0C29 #2F240C #0C2F13
square
#0C172F #2F0C29 #2F240C #0C2F13
split-complementary
#0C172F #2F130C #292F0C
monochromatic
#060C18 #060C18 #0C172F #182F60 #254791

Accessibility & contrast

On white

17.81
#0C172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0C172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C172F
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C172F#FFFFFF#000000##FFFFFF
##0C172F1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1930
Deuteranopia (green-blind)
#07162E
Tritanopia (blue-blind)
#001C20
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c172f;
/* rgb */ color: rgb(12, 23, 47);
/* oklch */ color: oklch(20.9% 0.050 264.0);
Tailwind
colors: {
  custom: {
    50: '#4f5367',
    500: '#0c172f',
    950: '#000000',
  },
}
SCSS
$custom: #0c172f;
$custom-light: #4f5367;
$custom-dark: #000000;
JSON
{
  "hex": "#0c172f",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 221.143,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20926,
    "c": 0.0503,
    "h": 264
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#0C172F
secondary
#6B572C
accent
#B145E3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0C172F

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

Preview Lab → · Contrast checker → · Palette generator →

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