#0C1746#0C1746

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

Color values

HEX#0C1746
RGBrgb(12, 23, 70)
HSLhsl(229, 71%, 16%)
HSVhsv(229, 83%, 27%)
CMYKcmyk(82.9%, 67.1%, 0%, 72.5%)
CIE-LABlab(10.05, 14.85, -30.89)
CIE-LCHlch(10.05, 34.27, 295.68°)
OKLaboklab(23.03% -0.0026 -0.0892)
OKLCHoklch(23.03% 0.089 268.3)
XYZxyz(1.5631, 1.1330, 5.9295)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1746 #463B0C
analogous
#0C3446 #0C1746 #1E0C46
triadic
#0C1746 #460C17 #17460C
tetradic
#0C1746 #460C34 #463B0C #0C461E
square
#0C1746 #460C34 #463B0C #0C461E
split-complementary
#0C1746 #461E0C #34460C
monochromatic
#04091A #04091A #0C1746 #15287A #1E39AE

Accessibility & contrast

On white

17.12
#0C1746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1746
17.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1746#FFFFFF#000000##FFFFFF
##0C17461.0017.121.2317.12
#FFFFFF17.121.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1746;
/* rgb */ color: rgb(12, 23, 70);
/* oklch */ color: oklch(23.0% 0.089 268.3);
Tailwind
colors: {
  custom: {
    50: '#55537a',
    500: '#0c1746',
    950: '#000000',
  },
}
SCSS
$custom: #0c1746;
$custom-light: #55537a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1746",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 70
  },
  "hsl": {
    "h": 228.621,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2303,
    "c": 0.08923,
    "h": 268.3
  },
  "luminance": 0.01133
}

Semantic roles & 50–950 ramp

primary
#0C1746
secondary
#82722C
accent
#CC3AED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1746

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

Preview Lab → · Contrast checker → · Palette generator →

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