#0C1144#0C1144

#0C1144 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.5% C 0.095 H 271.3°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#0C1144
RGBrgb(12, 17, 68)
HSLhsl(235, 70%, 16%)
HSVhsv(235, 82%, 27%)
CMYKcmyk(82.4%, 75%, 0%, 73.3%)
CIE-LABlab(8.10, 18.56, -32.69)
CIE-LCHlch(8.10, 37.59, 299.59°)
OKLaboklab(21.53% 0.0022 -0.0945)
OKLCHoklch(21.53% 0.095 271.3)
XYZxyz(1.3951, 0.8963, 5.5672)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1144 #443F0C
analogous
#0C2D44 #0C1144 #230C44
triadic
#0C1144 #440C11 #11440C
tetradic
#0C1144 #440C2D #443F0C #0C4423
square
#0C1144 #440C2D #443F0C #0C4423
split-complementary
#0C1144 #44230C #2D440C
monochromatic
#05071A #05071A #0C1144 #151E78 #1E2BAC

Accessibility & contrast

On white

17.81
#0C1144 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1144
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1144#FFFFFF#000000##FFFFFF
##0C11441.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A46
Deuteranopia (green-blind)
#001543
Tritanopia (blue-blind)
#001F28
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c1144;
/* rgb */ color: rgb(12, 17, 68);
/* oklch */ color: oklch(21.5% 0.095 271.3);
Tailwind
colors: {
  custom: {
    50: '#554f78',
    500: '#0c1144',
    950: '#000000',
  },
}
SCSS
$custom: #0c1144;
$custom-light: #554f78;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1144",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 68
  },
  "hsl": {
    "h": 234.643,
    "s": 70,
    "l": 15.686
  },
  "oklch": {
    "l": 0.21525,
    "c": 0.09455,
    "h": 271.3
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#0C1144
secondary
#80782C
accent
#DD3BED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C1144

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

Preview Lab → · Contrast checker → · Palette generator →

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