#0C184D#0C184D

#0C184D is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.0% C 0.099 H 268.0°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#0C184D
RGBrgb(12, 24, 77)
HSLhsl(229, 73%, 17%)
HSVhsv(229, 84%, 30%)
CMYKcmyk(84.4%, 68.8%, 0%, 69.8%)
CIE-LABlab(11.04, 17.14, -34.13)
CIE-LCHlch(11.04, 38.19, 296.66°)
OKLaboklab(23.98% -0.0035 -0.0987)
OKLCHoklch(23.98% 0.099 268)
XYZxyz(1.8173, 1.2670, 7.1685)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C184D #4D410C
analogous
#0C394D #0C184D #200C4D
triadic
#0C184D #4D0C18 #184D0C
tetradic
#0C184D #4D0C39 #4D410C #0C4D20
square
#0C184D #4D0C39 #4D410C #0C4D20
split-complementary
#0C184D #4D200C #394D0C
monochromatic
#04081A #04081A #0C184D #142982 #1D39B7

Accessibility & contrast

On white

16.75
#0C184D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0C184D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C184D
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C184D#FFFFFF#000000##FFFFFF
##0C184D1.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#001B4C
Tritanopia (blue-blind)
#00262F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0c184d;
/* rgb */ color: rgb(12, 24, 77);
/* oklch */ color: oklch(24.0% 0.099 268.0);
Tailwind
colors: {
  custom: {
    50: '#57547f',
    500: '#0c184d',
    950: '#000000',
  },
}
SCSS
$custom: #0c184d;
$custom-light: #57547f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c184d",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 77
  },
  "hsl": {
    "h": 228.923,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23977,
    "c": 0.09875,
    "h": 268
  },
  "luminance": 0.01267
}

Semantic roles & 50–950 ramp

primary
#0C184D
secondary
#89782C
accent
#CE38F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C184D

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

Preview Lab → · Contrast checker → · Palette generator →

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