#0C1645#0C1645

#0C1645 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.7% C 0.089 H 268.8°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#0C1645
RGBrgb(12, 22, 69)
HSLhsl(229, 70%, 16%)
HSVhsv(229, 83%, 27%)
CMYKcmyk(82.6%, 68.1%, 0%, 72.9%)
CIE-LABlab(9.65, 15.19, -30.84)
CIE-LCHlch(9.65, 34.38, 296.22°)
OKLaboklab(22.7% -0.0018 -0.0891)
OKLCHoklch(22.7% 0.089 268.8)
XYZxyz(1.5123, 1.0815, 5.7581)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1645 #453B0C
analogous
#0C3245 #0C1645 #1E0C45
triadic
#0C1645 #450C16 #16450C
tetradic
#0C1645 #450C32 #453B0C #0C451E
square
#0C1645 #450C32 #453B0C #0C451E
split-complementary
#0C1645 #451E0C #32450C
monochromatic
#05081A #05081A #0C1645 #152779 #1E37AD

Accessibility & contrast

On white

17.26
#0C1645 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0C1645 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1645
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1645#FFFFFF#000000##FFFFFF
##0C16451.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#001844
Tritanopia (blue-blind)
#00222A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c1645;
/* rgb */ color: rgb(12, 22, 69);
/* oklch */ color: oklch(22.7% 0.089 268.8);
Tailwind
colors: {
  custom: {
    50: '#555279',
    500: '#0c1645',
    950: '#000000',
  },
}
SCSS
$custom: #0c1645;
$custom-light: #555279;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1645",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 69
  },
  "hsl": {
    "h": 229.474,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.22702,
    "c": 0.08909,
    "h": 268.8
  },
  "luminance": 0.01082
}

Semantic roles & 50–950 ramp

primary
#0C1645
secondary
#81722C
accent
#CE3BED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1645

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

Preview Lab → · Contrast checker → · Palette generator →

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