#0C1042#0C1042

#0C1042 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.1% C 0.093 H 271.9°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#0C1042
RGBrgb(12, 16, 66)
HSLhsl(236, 69%, 15%)
HSVhsv(236, 82%, 26%)
CMYKcmyk(81.8%, 75.8%, 0%, 74.1%)
CIE-LABlab(7.61, 18.43, -32.08)
CIE-LCHlch(7.61, 37.00, 299.88°)
OKLaboklab(21.1% 0.0031 -0.0928)
OKLCHoklch(21.1% 0.093 271.9)
XYZxyz(1.3199, 0.8420, 5.2462)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1042 #423E0C
analogous
#0C2B42 #0C1042 #230C42
triadic
#0C1042 #420C10 #10420C
tetradic
#0C1042 #420C2B #423E0C #0C4223
square
#0C1042 #420C2B #423E0C #0C4223
split-complementary
#0C1042 #42230C #2B420C
monochromatic
#05061A #05061A #0C1042 #151D76 #1F29AA

Accessibility & contrast

On white

17.97
#0C1042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0C1042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1042
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1042#FFFFFF#000000##FFFFFF
##0C10421.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#001D27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0c1042;
/* rgb */ color: rgb(12, 16, 66);
/* oklch */ color: oklch(21.1% 0.093 271.9);
Tailwind
colors: {
  custom: {
    50: '#554e77',
    500: '#0c1042',
    950: '#000000',
  },
}
SCSS
$custom: #0c1042;
$custom-light: #554e77;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1042",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 235.556,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21097,
    "c": 0.09283,
    "h": 271.9
  },
  "luminance": 0.00842
}

Semantic roles & 50–950 ramp

primary
#0C1042
secondary
#7E782C
accent
#DF3CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C1042

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

Preview Lab → · Contrast checker → · Palette generator →

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