#0C101F#0C101F

#0C101F is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.8% C 0.032 H 271.5°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#0C101F
RGBrgb(12, 16, 31)
HSLhsl(227, 44%, 8%)
HSVhsv(227, 61%, 12%)
CMYKcmyk(61.3%, 48.4%, 0%, 87.8%)
CIE-LABlab(4.95, 2.61, -10.41)
CIE-LCHlch(4.95, 10.74, 284.07°)
OKLaboklab(17.75% 0.0008 -0.0317)
OKLCHoklch(17.75% 0.032 271.5)
XYZxyz(0.5842, 0.5476, 1.3710)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C101F #1F1B0C
analogous
#0C191F #0C101F #110C1F
triadic
#0C101F #1F0C10 #101F0C
tetradic
#0C101F #1F0C19 #1F1B0C #0C1F11
square
#0C101F #1F0C19 #1F1B0C #0C1F11
split-complementary
#0C101F #1F110C #191F0C
monochromatic
#090B16 #090B16 #0C101F #1D274B #2E3E77

Accessibility & contrast

On white

18.93
#0C101F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#0C101F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C101F
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C101F#FFFFFF#000000##FFFFFF
##0C101F1.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1220
Deuteranopia (green-blind)
#09101F
Tritanopia (blue-blind)
#061316
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0c101f;
/* rgb */ color: rgb(12, 16, 31);
/* oklch */ color: oklch(17.8% 0.032 271.5);
Tailwind
colors: {
  custom: {
    50: '#4c4e5a',
    500: '#0c101f',
    950: '#000000',
  },
}
SCSS
$custom: #0c101f;
$custom-light: #4c4e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c101f",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 31
  },
  "hsl": {
    "h": 227.368,
    "s": 44.186,
    "l": 8.431
  },
  "oklch": {
    "l": 0.1775,
    "c": 0.03173,
    "h": 271.5
  },
  "luminance": 0.00548
}

Semantic roles & 50–950 ramp

primary
#0C101F
secondary
#584F2F
accent
#B954D4
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010103
muted
#777778

Preview Lab

Preview with #0C101F

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

Preview Lab → · Contrast checker → · Palette generator →

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