#0C1844#0C1844

#0C1844 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.1% C 0.085 H 267.6°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#0C1844
RGBrgb(12, 24, 68)
HSLhsl(227, 70%, 16%)
HSVhsv(227, 82%, 27%)
CMYKcmyk(82.4%, 64.7%, 0%, 73.3%)
CIE-LABlab(10.17, 13.19, -29.29)
CIE-LCHlch(10.17, 32.13, 294.25°)
OKLaboklab(23.06% -0.0035 -0.0845)
OKLCHoklch(23.06% 0.085 267.6)
XYZxyz(1.5213, 1.1486, 5.6093)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1844 #44380C
analogous
#0C3444 #0C1844 #1C0C44
triadic
#0C1844 #440C18 #18440C
tetradic
#0C1844 #440C34 #44380C #0C441C
square
#0C1844 #440C34 #44380C #0C441C
split-complementary
#0C1844 #441C0C #34440C
monochromatic
#05091A #05091A #0C1844 #152A78 #1E3DAC

Accessibility & contrast

On white

17.08
#0C1844 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C1844 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1844
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1844#FFFFFF#000000##FFFFFF
##0C18441.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E45
Deuteranopia (green-blind)
#001943
Tritanopia (blue-blind)
#00232B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c1844;
/* rgb */ color: rgb(12, 24, 68);
/* oklch */ color: oklch(23.1% 0.085 267.6);
Tailwind
colors: {
  custom: {
    50: '#555478',
    500: '#0c1844',
    950: '#000000',
  },
}
SCSS
$custom: #0c1844;
$custom-light: #555478;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1844",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 68
  },
  "hsl": {
    "h": 227.143,
    "s": 70,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23059,
    "c": 0.08456,
    "h": 267.6
  },
  "luminance": 0.01149
}

Semantic roles & 50–950 ramp

primary
#0C1844
secondary
#806E2C
accent
#C73BED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1844

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

Preview Lab → · Contrast checker → · Palette generator →

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