#0C1847#0C1847

#0C1847 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.4% C 0.089 H 267.8°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#0C1847
RGBrgb(12, 24, 71)
HSLhsl(228, 71%, 16%)
HSVhsv(228, 83%, 28%)
CMYKcmyk(83.1%, 66.2%, 0%, 72.2%)
CIE-LABlab(10.46, 14.52, -30.93)
CIE-LCHlch(10.46, 34.17, 295.14°)
OKLaboklab(23.36% -0.0034 -0.0893)
OKLCHoklch(23.36% 0.089 267.8)
XYZxyz(1.6152, 1.1862, 6.1038)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1847 #473B0C
analogous
#0C3647 #0C1847 #1E0C47
triadic
#0C1847 #470C18 #18470C
tetradic
#0C1847 #470C36 #473B0C #0C471E
square
#0C1847 #470C36 #473B0C #0C471E
split-complementary
#0C1847 #471E0C #36470C
monochromatic
#04091A #04091A #0C1847 #152A7B #1E3BB0

Accessibility & contrast

On white

16.97
#0C1847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#0C1847 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1847
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1847#FFFFFF#000000##FFFFFF
##0C18471.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#001A46
Tritanopia (blue-blind)
#00242C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c1847;
/* rgb */ color: rgb(12, 24, 71);
/* oklch */ color: oklch(23.4% 0.089 267.8);
Tailwind
colors: {
  custom: {
    50: '#55547b',
    500: '#0c1847',
    950: '#000000',
  },
}
SCSS
$custom: #0c1847;
$custom-light: #55547b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1847",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 71
  },
  "hsl": {
    "h": 227.797,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23358,
    "c": 0.08938,
    "h": 267.8
  },
  "luminance": 0.01186
}

Semantic roles & 50–950 ramp

primary
#0C1847
secondary
#83712C
accent
#C93AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1847

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

Preview Lab → · Contrast checker → · Palette generator →

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