#0C072F#0C072F

#0C072F is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 17.1% C 0.076 H 280.7°. Best body text is #FFFFFF at 19.32:1 contrast (WCAG AA passes).

Color values

HEX#0C072F
RGBrgb(12, 7, 47)
HSLhsl(248, 74%, 11%)
HSVhsv(248, 85%, 18%)
CMYKcmyk(74.5%, 85.1%, 0%, 81.6%)
CIE-LABlab(3.93, 13.39, -24.20)
CIE-LCHlch(3.93, 27.65, 298.95°)
OKLaboklab(17.08% 0.0141 -0.0747)
OKLCHoklch(17.08% 0.076 280.7)
XYZxyz(0.7405, 0.4353, 2.7338)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C072F #2A2F07
analogous
#07162F #0C072F #20072F
triadic
#0C072F #2F0C07 #072F0C
tetradic
#0C072F #2F0716 #2A2F07 #072F20
square
#0C072F #2F0716 #2A2F07 #072F20
split-complementary
#0C072F #2F2007 #162F07
monochromatic
#07041B #07041B #0C072F #1A0F64 #27179A

Accessibility & contrast

On white

19.32
#0C072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#0C072F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C072F
19.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C072F#FFFFFF#000000##FFFFFF
##0C072F1.0019.321.0919.32
#FFFFFF19.321.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#000C2E
Tritanopia (blue-blind)
#00121A
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0c072f;
/* rgb */ color: rgb(12, 7, 47);
/* oklch */ color: oklch(17.1% 0.076 280.7);
Tailwind
colors: {
  custom: {
    50: '#4e4968',
    500: '#0c072f',
    950: '#000000',
  },
}
SCSS
$custom: #0c072f;
$custom-light: #4e4968;
$custom-dark: #000000;
JSON
{
  "hex": "#0c072f",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 247.5,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.17083,
    "c": 0.07601,
    "h": 280.7
  },
  "luminance": 0.00435
}

Semantic roles & 50–950 ramp

primary
#0C072F
secondary
#656F23
accent
#F137DA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C072F

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

Preview Lab → · Contrast checker → · Palette generator →

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