#0C1047#0C1047

#0C1047 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.7% C 0.100 H 271.4°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#0C1047
RGBrgb(12, 16, 71)
HSLhsl(236, 71%, 16%)
HSVhsv(236, 83%, 28%)
CMYKcmyk(83.1%, 77.5%, 0%, 72.2%)
CIE-LABlab(8.16, 20.55, -34.69)
CIE-LCHlch(8.16, 40.32, 300.64°)
OKLaboklab(21.67% 0.0025 -0.1004)
OKLCHoklch(21.67% 0.1 271.4)
XYZxyz(1.4739, 0.9035, 6.0567)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1047 #47430C
analogous
#0C2E47 #0C1047 #260C47
triadic
#0C1047 #470C10 #10470C
tetradic
#0C1047 #470C2E #47430C #0C4726
square
#0C1047 #470C2E #47430C #0C4726
split-complementary
#0C1047 #47260C #2E470C
monochromatic
#04061A #04061A #0C1047 #151C7B #1E28B0

Accessibility & contrast

On white

17.78
#0C1047 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1047
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1047#FFFFFF#000000##FFFFFF
##0C10471.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B49
Deuteranopia (green-blind)
#001546
Tritanopia (blue-blind)
#001F2A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c1047;
/* rgb */ color: rgb(12, 16, 71);
/* oklch */ color: oklch(21.7% 0.100 271.4);
Tailwind
colors: {
  custom: {
    50: '#564e7b',
    500: '#0c1047',
    950: '#000000',
  },
}
SCSS
$custom: #0c1047;
$custom-light: #564e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1047",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 71
  },
  "hsl": {
    "h": 235.932,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.21674,
    "c": 0.10041,
    "h": 271.4
  },
  "luminance": 0.00904
}

Semantic roles & 50–950 ramp

primary
#0C1047
secondary
#837D2C
accent
#E23AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030109
muted
#78777B

Preview Lab

Preview with #0C1047

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

Preview Lab → · Contrast checker → · Palette generator →

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