#0C182A#0C182A

#0C182A is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.8% C 0.040 H 258.3°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#0C182A
RGBrgb(12, 24, 42)
HSLhsl(216, 56%, 11%)
HSVhsv(216, 71%, 16%)
CMYKcmyk(71.4%, 42.9%, 0%, 83.5%)
CIE-LABlab(8.12, 1.68, -13.84)
CIE-LCHlch(8.12, 13.94, 276.91°)
OKLaboklab(20.83% -0.0081 -0.0391)
OKLCHoklch(20.83% 0.04 258.3)
XYZxyz(0.8960, 0.8985, 2.3163)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C182A #2A1E0C
analogous
#0C272A #0C182A #0F0C2A
triadic
#0C182A #2A0C18 #182A0C
tetradic
#0C182A #2A0C27 #2A1E0C #0C2A0F
square
#0C182A #2A0C27 #2A1E0C #0C2A0F
split-complementary
#0C182A #2A0F0C #272A0C
monochromatic
#070E18 #070E18 #0C182A #1A335A #274E89

Accessibility & contrast

On white

17.80
#0C182A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C182A
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C182A#FFFFFF#000000##FFFFFF
##0C182A1.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11192B
Deuteranopia (green-blind)
#0D162A
Tritanopia (blue-blind)
#001C1F
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c182a;
/* rgb */ color: rgb(12, 24, 42);
/* oklch */ color: oklch(20.8% 0.040 258.3);
Tailwind
colors: {
  custom: {
    50: '#4e5463',
    500: '#0c182a',
    950: '#000000',
  },
}
SCSS
$custom: #0c182a;
$custom-light: #4e5463;
$custom-dark: #000000;
JSON
{
  "hex": "#0c182a",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 42
  },
  "hsl": {
    "h": 216,
    "s": 55.556,
    "l": 10.588
  },
  "oklch": {
    "l": 0.20831,
    "c": 0.03994,
    "h": 258.3
  },
  "luminance": 0.00899
}

Semantic roles & 50–950 ramp

primary
#0C182A
secondary
#654F2D
accent
#A349DF
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010205
muted
#777879

Preview Lab

Preview with #0C182A

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

Preview Lab → · Contrast checker → · Palette generator →

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