#0C182D#0C182D

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

Color values

HEX#0C182D
RGBrgb(12, 24, 45)
HSLhsl(218, 58%, 11%)
HSVhsv(218, 73%, 18%)
CMYKcmyk(73.3%, 46.7%, 0%, 82.4%)
CIE-LABlab(8.31, 2.97, -15.74)
CIE-LCHlch(8.31, 16.02, 280.68°)
OKLaboklab(21.05% -0.0072 -0.0447)
OKLCHoklch(21.05% 0.045 260.9)
XYZxyz(0.9517, 0.9208, 2.6097)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C182D #2D210C
analogous
#0C282D #0C182D #100C2D
triadic
#0C182D #2D0C18 #182D0C
tetradic
#0C182D #2D0C28 #2D210C #0C2D10
square
#0C182D #2D0C28 #2D210C #0C2D10
split-complementary
#0C182D #2D100C #282D0C
monochromatic
#060D18 #060D18 #0C182D #19325D #264C8E

Accessibility & contrast

On white

17.73
#0C182D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C182D
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C182D#FFFFFF#000000##FFFFFF
##0C182D1.0017.731.1817.73
#FFFFFF17.731.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c182d;
/* rgb */ color: rgb(12, 24, 45);
/* oklch */ color: oklch(21.1% 0.045 260.9);
Tailwind
colors: {
  custom: {
    50: '#4e5466',
    500: '#0c182d',
    950: '#000000',
  },
}
SCSS
$custom: #0c182d;
$custom-light: #4e5466;
$custom-dark: #000000;
JSON
{
  "hex": "#0c182d",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 45
  },
  "hsl": {
    "h": 218.182,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.2105,
    "c": 0.04525,
    "h": 260.9
  },
  "luminance": 0.00921
}

Semantic roles & 50–950 ramp

primary
#0C182D
secondary
#69532C
accent
#A947E1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0C182D

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

Preview Lab → · Contrast checker → · Palette generator →

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