#0C072D#0C072D

#0C072D is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.8% C 0.073 H 281.5°. Best body text is #FFFFFF at 19.37:1 contrast (WCAG AA passes).

Color values

HEX#0C072D
RGBrgb(12, 7, 45)
HSLhsl(248, 73%, 10%)
HSVhsv(248, 84%, 18%)
CMYKcmyk(73.3%, 84.4%, 0%, 82.4%)
CIE-LABlab(3.79, 12.39, -22.92)
CIE-LCHlch(3.79, 26.05, 298.39°)
OKLaboklab(16.85% 0.0145 -0.0714)
OKLCHoklch(16.85% 0.073 281.5)
XYZxyz(0.7011, 0.4195, 2.5261)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C072D #282D07
analogous
#07152D #0C072D #1F072D
triadic
#0C072D #2D0C07 #072D0C
tetradic
#0C072D #2D0715 #282D07 #072D1F
square
#0C072D #2D0715 #282D07 #072D1F
split-complementary
#0C072D #2D1F07 #152D07
monochromatic
#07041A #07041A #0C072D #1A0F62 #281797

Accessibility & contrast

On white

19.37
#0C072D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C072D
19.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C072D#FFFFFF#000000##FFFFFF
##0C072D1.0019.371.0819.37
#FFFFFF19.371.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2E
Deuteranopia (green-blind)
#000C2C
Tritanopia (blue-blind)
#001119
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c072d;
/* rgb */ color: rgb(12, 7, 45);
/* oklch */ color: oklch(16.8% 0.073 281.5);
Tailwind
colors: {
  custom: {
    50: '#4e4966',
    500: '#0c072d',
    950: '#000000',
  },
}
SCSS
$custom: #0c072d;
$custom-light: #4e4966;
$custom-dark: #000000;
JSON
{
  "hex": "#0c072d",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 45
  },
  "hsl": {
    "h": 247.895,
    "s": 73.077,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16847,
    "c": 0.07288,
    "h": 281.5
  },
  "luminance": 0.0042
}

Semantic roles & 50–950 ramp

primary
#0C072D
secondary
#636D23
accent
#F038D8
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C072D

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

Preview Lab → · Contrast checker → · Palette generator →

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