#0C182F#0C182F

#0C182F is a very dark, muted blue. Relative luminance 0.009; OKLCH L 21.2% C 0.049 H 262.2°. Best body text is #FFFFFF at 17.69:1 contrast (WCAG AA passes).

Color values

HEX#0C182F
RGBrgb(12, 24, 47)
HSLhsl(219, 59%, 12%)
HSVhsv(219, 74%, 18%)
CMYKcmyk(74.5%, 48.9%, 0%, 81.6%)
CIE-LABlab(8.45, 3.84, -17.00)
CIE-LCHlch(8.45, 17.43, 282.74°)
OKLaboklab(21.2% -0.0066 -0.0483)
OKLCHoklch(21.2% 0.049 262.2)
XYZxyz(0.9912, 0.9366, 2.8173)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C182F #2F230C
analogous
#0C2A2F #0C182F #120C2F
triadic
#0C182F #2F0C18 #182F0C
tetradic
#0C182F #2F0C2A #2F230C #0C2F12
square
#0C182F #2F0C2A #2F230C #0C2F12
split-complementary
#0C182F #2F120C #2A2F0C
monochromatic
#060C18 #060C18 #0C182F #183160 #254A91

Accessibility & contrast

On white

17.69
#0C182F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0C182F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C182F
17.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C182F#FFFFFF#000000##FFFFFF
##0C182F1.0017.691.1917.69
#FFFFFF17.691.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A30
Deuteranopia (green-blind)
#09172F
Tritanopia (blue-blind)
#001D21
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c182f;
/* rgb */ color: rgb(12, 24, 47);
/* oklch */ color: oklch(21.2% 0.049 262.2);
Tailwind
colors: {
  custom: {
    50: '#4f5467',
    500: '#0c182f',
    950: '#000000',
  },
}
SCSS
$custom: #0c182f;
$custom-light: #4f5467;
$custom-dark: #000000;
JSON
{
  "hex": "#0c182f",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 47
  },
  "hsl": {
    "h": 219.429,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21202,
    "c": 0.04879,
    "h": 262.2
  },
  "luminance": 0.00937
}

Semantic roles & 50–950 ramp

primary
#0C182F
secondary
#6B552C
accent
#AD45E3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0C182F

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

Preview Lab → · Contrast checker → · Palette generator →

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