#0C182C#0C182C

#0C182C is a very dark, muted blue. Relative luminance 0.009; OKLCH L 21.0% C 0.043 H 260.1°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#0C182C
RGBrgb(12, 24, 44)
HSLhsl(218, 57%, 11%)
HSVhsv(218, 73%, 17%)
CMYKcmyk(72.7%, 45.5%, 0%, 82.7%)
CIE-LABlab(8.25, 2.54, -15.11)
CIE-LCHlch(8.25, 15.32, 279.53°)
OKLaboklab(20.98% -0.0075 -0.0428)
OKLCHoklch(20.98% 0.043 260.1)
XYZxyz(0.9327, 0.9132, 2.5095)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C182C #2C200C
analogous
#0C282C #0C182C #100C2C
triadic
#0C182C #2C0C18 #182C0C
tetradic
#0C182C #2C0C28 #2C200C #0C2C10
square
#0C182C #2C0C28 #2C200C #0C2C10
split-complementary
#0C182C #2C100C #282C0C
monochromatic
#070D18 #070D18 #0C182C #19325C #264C8C

Accessibility & contrast

On white

17.76
#0C182C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C182C
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C182C#FFFFFF#000000##FFFFFF
##0C182C1.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101A2D
Deuteranopia (green-blind)
#0B172C
Tritanopia (blue-blind)
#001C1F
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c182c;
/* rgb */ color: rgb(12, 24, 44);
/* oklch */ color: oklch(21.0% 0.043 260.1);
Tailwind
colors: {
  custom: {
    50: '#4e5465',
    500: '#0c182c',
    950: '#000000',
  },
}
SCSS
$custom: #0c182c;
$custom-light: #4e5465;
$custom-dark: #000000;
JSON
{
  "hex": "#0c182c",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 44
  },
  "hsl": {
    "h": 217.5,
    "s": 57.143,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20976,
    "c": 0.04347,
    "h": 260.1
  },
  "luminance": 0.00913
}

Semantic roles & 50–950 ramp

primary
#0C182C
secondary
#67512C
accent
#A747E0
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020205
muted
#78787A

Preview Lab

Preview with #0C182C

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

Preview Lab → · Contrast checker → · Palette generator →

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