#0C1745#0C1745

#0C1745 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.9% C 0.088 H 268.3°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#0C1745
RGBrgb(12, 23, 69)
HSLhsl(228, 70%, 16%)
HSVhsv(228, 83%, 27%)
CMYKcmyk(82.6%, 66.7%, 0%, 72.9%)
CIE-LABlab(9.96, 14.41, -30.34)
CIE-LCHlch(9.96, 33.59, 295.40°)
OKLaboklab(22.93% -0.0026 -0.0876)
OKLCHoklch(22.93% 0.088 268.3)
XYZxyz(1.5318, 1.1205, 5.7646)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1745 #453A0C
analogous
#0C3345 #0C1745 #1D0C45
triadic
#0C1745 #450C17 #17450C
tetradic
#0C1745 #450C33 #453A0C #0C451D
square
#0C1745 #450C33 #453A0C #0C451D
split-complementary
#0C1745 #451D0C #33450C
monochromatic
#05091A #05091A #0C1745 #152879 #1E3AAD

Accessibility & contrast

On white

17.15
#0C1745 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1745
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1745#FFFFFF#000000##FFFFFF
##0C17451.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#001944
Tritanopia (blue-blind)
#00232B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c1745;
/* rgb */ color: rgb(12, 23, 69);
/* oklch */ color: oklch(22.9% 0.088 268.3);
Tailwind
colors: {
  custom: {
    50: '#555379',
    500: '#0c1745',
    950: '#000000',
  },
}
SCSS
$custom: #0c1745;
$custom-light: #555379;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1745",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 69
  },
  "hsl": {
    "h": 228.421,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.22928,
    "c": 0.08764,
    "h": 268.3
  },
  "luminance": 0.01121
}

Semantic roles & 50–950 ramp

primary
#0C1745
secondary
#81712C
accent
#CB3BED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1745

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

Preview Lab → · Contrast checker → · Palette generator →

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