#0C072C#0C072C

#0C072C is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.7% C 0.071 H 281.9°. Best body text is #FFFFFF at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#0C072C
RGBrgb(12, 7, 44)
HSLhsl(248, 73%, 10%)
HSVhsv(248, 84%, 17%)
CMYKcmyk(72.7%, 84.1%, 0%, 82.7%)
CIE-LABlab(3.72, 11.90, -22.28)
CIE-LCHlch(3.72, 25.26, 298.12°)
OKLaboklab(16.73% 0.0147 -0.0698)
OKLCHoklch(16.73% 0.071 281.9)
XYZxyz(0.6821, 0.4119, 2.4260)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C072C #272C07
analogous
#07152C #0C072C #1E072C
triadic
#0C072C #2C0C07 #072C0C
tetradic
#0C072C #2C0715 #272C07 #072C1E
square
#0C072C #2C0715 #272C07 #072C1E
split-complementary
#0C072C #2C1E07 #152C07
monochromatic
#07041A #07041A #0C072C #1A0F61 #291896

Accessibility & contrast

On white

19.40
#0C072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C072C
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C072C#FFFFFF#000000##FFFFFF
##0C072C1.0019.401.0819.40
#FFFFFF19.401.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2D
Deuteranopia (green-blind)
#000C2B
Tritanopia (blue-blind)
#001118
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c072c;
/* rgb */ color: rgb(12, 7, 44);
/* oklch */ color: oklch(16.7% 0.071 281.9);
Tailwind
colors: {
  custom: {
    50: '#4d4965',
    500: '#0c072c',
    950: '#000000',
  },
}
SCSS
$custom: #0c072c;
$custom-light: #4d4965;
$custom-dark: #000000;
JSON
{
  "hex": "#0c072c",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 248.108,
    "s": 72.549,
    "l": 10
  },
  "oklch": {
    "l": 0.1673,
    "c": 0.07129,
    "h": 281.9
  },
  "luminance": 0.00412
}

Semantic roles & 50–950 ramp

primary
#0C072C
secondary
#626C23
accent
#EF39D7
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020105
muted
#78777A

Preview Lab

Preview with #0C072C

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

Preview Lab → · Contrast checker → · Palette generator →

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