#0C1046#0C1046

#0C1046 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.6% C 0.099 H 271.5°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#0C1046
RGBrgb(12, 16, 70)
HSLhsl(236, 71%, 16%)
HSVhsv(236, 83%, 27%)
CMYKcmyk(82.9%, 77.1%, 0%, 72.5%)
CIE-LABlab(8.05, 20.13, -34.18)
CIE-LCHlch(8.05, 39.66, 300.50°)
OKLaboklab(21.56% 0.0026 -0.0989)
OKLCHoklch(21.56% 0.099 271.5)
XYZxyz(1.4420, 0.8908, 5.8891)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1046 #46420C
analogous
#0C2D46 #0C1046 #250C46
triadic
#0C1046 #460C10 #10460C
tetradic
#0C1046 #460C2D #46420C #0C4625
square
#0C1046 #460C2D #46420C #0C4625
split-complementary
#0C1046 #46250C #2D460C
monochromatic
#04061A #04061A #0C1046 #151C7A #1E28AE

Accessibility & contrast

On white

17.82
#0C1046 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1046
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1046#FFFFFF#000000##FFFFFF
##0C10461.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001545
Tritanopia (blue-blind)
#001F29
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c1046;
/* rgb */ color: rgb(12, 16, 70);
/* oklch */ color: oklch(21.6% 0.099 271.5);
Tailwind
colors: {
  custom: {
    50: '#564e7a',
    500: '#0c1046',
    950: '#000000',
  },
}
SCSS
$custom: #0c1046;
$custom-light: #564e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1046",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 70
  },
  "hsl": {
    "h": 235.862,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.21557,
    "c": 0.09891,
    "h": 271.5
  },
  "luminance": 0.00891
}

Semantic roles & 50–950 ramp

primary
#0C1046
secondary
#827C2C
accent
#E13AED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C1046

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

Preview Lab → · Contrast checker → · Palette generator →

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