#0C184E#0C184E

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

Color values

HEX#0C184E
RGBrgb(12, 24, 78)
HSLhsl(229, 73%, 18%)
HSVhsv(229, 85%, 31%)
CMYKcmyk(84.6%, 69.2%, 0%, 69.4%)
CIE-LABlab(11.14, 17.57, -34.66)
CIE-LCHlch(11.14, 38.85, 296.88°)
OKLaboklab(24.08% -0.0035 -0.1002)
OKLCHoklch(24.08% 0.1 268)
XYZxyz(1.8529, 1.2813, 7.3559)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C184E #4E420C
analogous
#0C394E #0C184E #210C4E
triadic
#0C184E #4E0C18 #184E0C
tetradic
#0C184E #4E0C39 #4E420C #0C4E21
square
#0C184E #4E0C39 #4E420C #0C4E21
split-complementary
#0C184E #4E210C #394E0C
monochromatic
#04081B #04081B #0C184E #142883 #1C39B8

Accessibility & contrast

On white

16.72
#0C184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#0C184E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C184E
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C184E#FFFFFF#000000##FFFFFF
##0C184E1.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#001B4D
Tritanopia (blue-blind)
#002630
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0c184e;
/* rgb */ color: rgb(12, 24, 78);
/* oklch */ color: oklch(24.1% 0.100 268.0);
Tailwind
colors: {
  custom: {
    50: '#585480',
    500: '#0c184e',
    950: '#000000',
  },
}
SCSS
$custom: #0c184e;
$custom-light: #585480;
$custom-dark: #000000;
JSON
{
  "hex": "#0c184e",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 229.091,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24083,
    "c": 0.10029,
    "h": 268
  },
  "luminance": 0.01281
}

Semantic roles & 50–950 ramp

primary
#0C184E
secondary
#8A792C
accent
#CF38F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C184E

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

Preview Lab → · Contrast checker → · Palette generator →

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