#0C1049#0C1049

#0C1049 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.9% C 0.103 H 271.2°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#0C1049
RGBrgb(12, 16, 73)
HSLhsl(236, 72%, 17%)
HSVhsv(236, 84%, 29%)
CMYKcmyk(83.6%, 78.1%, 0%, 71.4%)
CIE-LABlab(8.39, 21.36, -35.71)
CIE-LCHlch(8.39, 41.61, 300.89°)
OKLaboklab(21.91% 0.0022 -0.1034)
OKLCHoklch(21.91% 0.103 271.2)
XYZxyz(1.5391, 0.9296, 6.4004)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1049 #49450C
analogous
#0C2F49 #0C1049 #270C49
triadic
#0C1049 #490C10 #10490C
tetradic
#0C1049 #490C2F #49450C #0C4927
square
#0C1049 #490C2F #49450C #0C4927
split-complementary
#0C1049 #49270C #2F490C
monochromatic
#04061A #04061A #0C1049 #151C7E #1D27B2

Accessibility & contrast

On white

17.71
#0C1049 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0C1049 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1049
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1049#FFFFFF#000000##FFFFFF
##0C10491.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4B
Deuteranopia (green-blind)
#001548
Tritanopia (blue-blind)
#00202B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c1049;
/* rgb */ color: rgb(12, 16, 73);
/* oklch */ color: oklch(21.9% 0.103 271.2);
Tailwind
colors: {
  custom: {
    50: '#574e7c',
    500: '#0c1049',
    950: '#000000',
  },
}
SCSS
$custom: #0c1049;
$custom-light: #574e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1049",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 73
  },
  "hsl": {
    "h": 236.066,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.2191,
    "c": 0.10338,
    "h": 271.2
  },
  "luminance": 0.0093
}

Semantic roles & 50–950 ramp

primary
#0C1049
secondary
#857F2C
accent
#E339EE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #0C1049

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

Preview Lab → · Contrast checker → · Palette generator →

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