#0C101C#0C101C

#0C101C is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.5% C 0.026 H 269.5°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#0C101C
RGBrgb(12, 16, 28)
HSLhsl(225, 40%, 8%)
HSVhsv(225, 57%, 11%)
CMYKcmyk(57.1%, 42.9%, 0%, 89%)
CIE-LABlab(4.81, 1.65, -8.28)
CIE-LCHlch(4.81, 8.45, 281.24°)
OKLaboklab(17.54% -0.0002 -0.0258)
OKLCHoklch(17.54% 0.026 269.5)
XYZxyz(0.5464, 0.5326, 1.1724)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C101C #1C180C
analogous
#0C181C #0C101C #100C1C
triadic
#0C101C #1C0C10 #101C0C
tetradic
#0C101C #1C0C18 #1C180C #0C1C10
square
#0C101C #1C0C18 #1C180C #0C1C10
split-complementary
#0C101C #1C100C #181C0C
monochromatic
#090C15 #090C15 #0C101C #1E2847 #314172

Accessibility & contrast

On white

18.98
#0C101C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C101C
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C101C#FFFFFF#000000##FFFFFF
##0C101C1.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C111D
Deuteranopia (green-blind)
#0A101C
Tritanopia (blue-blind)
#071214
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #0c101c;
/* rgb */ color: rgb(12, 16, 28);
/* oklch */ color: oklch(17.5% 0.026 269.5);
Tailwind
colors: {
  custom: {
    50: '#4c4e58',
    500: '#0c101c',
    950: '#000000',
  },
}
SCSS
$custom: #0c101c;
$custom-light: #4c4e58;
$custom-dark: #000000;
JSON
{
  "hex": "#0c101c",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 28
  },
  "hsl": {
    "h": 225,
    "s": 40,
    "l": 7.843
  },
  "oklch": {
    "l": 0.17541,
    "c": 0.02582,
    "h": 269.5
  },
  "luminance": 0.00533
}

Semantic roles & 50–950 ramp

primary
#0C101C
secondary
#544B2F
accent
#B258D0
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010103
muted
#777778

Preview Lab

Preview with #0C101C

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

Preview Lab → · Contrast checker → · Palette generator →

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