#0C182E#0C182E

#0C182E is a very dark, muted blue. Relative luminance 0.009; OKLCH L 21.1% C 0.047 H 261.6°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#0C182E
RGBrgb(12, 24, 46)
HSLhsl(219, 59%, 11%)
HSVhsv(219, 74%, 18%)
CMYKcmyk(73.9%, 47.8%, 0%, 82%)
CIE-LABlab(8.38, 3.40, -16.37)
CIE-LCHlch(8.38, 16.72, 281.75°)
OKLaboklab(21.13% -0.0069 -0.0465)
OKLCHoklch(21.13% 0.047 261.6)
XYZxyz(0.9712, 0.9286, 2.7123)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C182E #2E220C
analogous
#0C292E #0C182E #110C2E
triadic
#0C182E #2E0C18 #182E0C
tetradic
#0C182E #2E0C29 #2E220C #0C2E11
square
#0C182E #2E0C29 #2E220C #0C2E11
split-complementary
#0C182E #2E110C #292E0C
monochromatic
#060D18 #060D18 #0C182E #19315F #254B8F

Accessibility & contrast

On white

17.71
#0C182E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C182E
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C182E#FFFFFF#000000##FFFFFF
##0C182E1.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A2F
Deuteranopia (green-blind)
#0A172E
Tritanopia (blue-blind)
#001D20
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c182e;
/* rgb */ color: rgb(12, 24, 46);
/* oklch */ color: oklch(21.1% 0.047 261.6);
Tailwind
colors: {
  custom: {
    50: '#4e5467',
    500: '#0c182e',
    950: '#000000',
  },
}
SCSS
$custom: #0c182e;
$custom-light: #4e5467;
$custom-dark: #000000;
JSON
{
  "hex": "#0c182e",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 46
  },
  "hsl": {
    "h": 218.824,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.21125,
    "c": 0.04701,
    "h": 261.6
  },
  "luminance": 0.00929
}

Semantic roles & 50–950 ramp

primary
#0C182E
secondary
#6A542C
accent
#AB46E2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0C182E

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

Preview Lab → · Contrast checker → · Palette generator →

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