#0C182B#0C182B

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

Color values

HEX#0C182B
RGBrgb(12, 24, 43)
HSLhsl(217, 56%, 11%)
HSVhsv(217, 72%, 17%)
CMYKcmyk(72.1%, 44.2%, 0%, 83.1%)
CIE-LABlab(8.18, 2.10, -14.48)
CIE-LCHlch(8.18, 14.63, 278.26°)
OKLaboklab(20.9% -0.0078 -0.041)
OKLCHoklch(20.9% 0.042 259.2)
XYZxyz(0.9141, 0.9058, 2.4117)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C182B #2B1F0C
analogous
#0C272B #0C182B #0F0C2B
triadic
#0C182B #2B0C18 #182B0C
tetradic
#0C182B #2B0C27 #2B1F0C #0C2B0F
square
#0C182B #2B0C27 #2B1F0C #0C2B0F
split-complementary
#0C182B #2B0F0C #272B0C
monochromatic
#070D18 #070D18 #0C182B #19335B #274D8B

Accessibility & contrast

On white

17.78
#0C182B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C182B
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C182B#FFFFFF#000000##FFFFFF
##0C182B1.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10192C
Deuteranopia (green-blind)
#0C172B
Tritanopia (blue-blind)
#001C1F
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c182b;
/* rgb */ color: rgb(12, 24, 43);
/* oklch */ color: oklch(20.9% 0.042 259.2);
Tailwind
colors: {
  custom: {
    50: '#4e5464',
    500: '#0c182b',
    950: '#000000',
  },
}
SCSS
$custom: #0c182b;
$custom-light: #4e5464;
$custom-dark: #000000;
JSON
{
  "hex": "#0c182b",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 43
  },
  "hsl": {
    "h": 216.774,
    "s": 56.364,
    "l": 10.784
  },
  "oklch": {
    "l": 0.20903,
    "c": 0.0417,
    "h": 259.2
  },
  "luminance": 0.00906
}

Semantic roles & 50–950 ramp

primary
#0C182B
secondary
#66502C
accent
#A548E0
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #0C182B

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

Preview Lab → · Contrast checker → · Palette generator →

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