#0C072A#0C072A

#0C072A is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.5% C 0.068 H 282.8°. Best body text is #FFFFFF at 19.46:1 contrast (WCAG AA passes).

Color values

HEX#0C072A
RGBrgb(12, 7, 42)
HSLhsl(249, 71%, 10%)
HSVhsv(249, 83%, 16%)
CMYKcmyk(71.4%, 83.3%, 0%, 83.5%)
CIE-LABlab(3.59, 10.97, -20.97)
CIE-LCHlch(3.59, 23.67, 297.62°)
OKLaboklab(16.5% 0.0151 -0.0664)
OKLCHoklch(16.5% 0.068 282.8)
XYZxyz(0.6454, 0.3972, 2.2327)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C072A #252A07
analogous
#07142A #0C072A #1E072A
triadic
#0C072A #2A0C07 #072A0C
tetradic
#0C072A #2A0714 #252A07 #072A1E
square
#0C072A #2A0714 #252A07 #072A1E
split-complementary
#0C072A #2A1E07 #142A07
monochromatic
#07041A #07041A #0C072A #1B105E #2A1893

Accessibility & contrast

On white

19.46
#0C072A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#0C072A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C072A
19.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C072A#FFFFFF#000000##FFFFFF
##0C072A1.0019.461.0819.46
#FFFFFF19.461.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2B
Deuteranopia (green-blind)
#000C29
Tritanopia (blue-blind)
#011017
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c072a;
/* rgb */ color: rgb(12, 7, 42);
/* oklch */ color: oklch(16.5% 0.068 282.8);
Tailwind
colors: {
  custom: {
    50: '#4d4964',
    500: '#0c072a',
    950: '#000000',
  },
}
SCSS
$custom: #0c072a;
$custom-light: #4d4964;
$custom-dark: #000000;
JSON
{
  "hex": "#0c072a",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 42
  },
  "hsl": {
    "h": 248.571,
    "s": 71.429,
    "l": 9.608
  },
  "oklch": {
    "l": 0.16501,
    "c": 0.06808,
    "h": 282.8
  },
  "luminance": 0.00397
}

Semantic roles & 50–950 ramp

primary
#0C072A
secondary
#606A23
accent
#EE3AD4
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #0C072A

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

Preview Lab → · Contrast checker → · Palette generator →

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