#0C1048#0C1048

#0C1048 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.8% C 0.102 H 271.3°. Best body text is #FFFFFF at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#0C1048
RGBrgb(12, 16, 72)
HSLhsl(236, 71%, 16%)
HSVhsv(236, 83%, 28%)
CMYKcmyk(83.3%, 77.8%, 0%, 71.8%)
CIE-LABlab(8.28, 20.95, -35.20)
CIE-LCHlch(8.28, 40.97, 300.76°)
OKLaboklab(21.79% 0.0023 -0.1019)
OKLCHoklch(21.79% 0.102 271.3)
XYZxyz(1.5062, 0.9165, 6.2271)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1048 #48440C
analogous
#0C2E48 #0C1048 #260C48
triadic
#0C1048 #480C10 #10480C
tetradic
#0C1048 #480C2E #48440C #0C4826
square
#0C1048 #480C2E #48440C #0C4826
split-complementary
#0C1048 #48260C #2E480C
monochromatic
#04061A #04061A #0C1048 #151C7C #1D27B1

Accessibility & contrast

On white

17.75
#0C1048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1048
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1048#FFFFFF#000000##FFFFFF
##0C10481.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001547
Tritanopia (blue-blind)
#00202A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c1048;
/* rgb */ color: rgb(12, 16, 72);
/* oklch */ color: oklch(21.8% 0.102 271.3);
Tailwind
colors: {
  custom: {
    50: '#574e7c',
    500: '#0c1048',
    950: '#000000',
  },
}
SCSS
$custom: #0c1048;
$custom-light: #574e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1048",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 72
  },
  "hsl": {
    "h": 236,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.21792,
    "c": 0.1019,
    "h": 271.3
  },
  "luminance": 0.00917
}

Semantic roles & 50–950 ramp

primary
#0C1048
secondary
#847E2C
accent
#E23AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #0C1048

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

Preview Lab → · Contrast checker → · Palette generator →

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