#0C072B#0C072B

#0C072B is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.6% C 0.070 H 282.4°. Best body text is #FFFFFF at 19.43:1 contrast (WCAG AA passes).

Color values

HEX#0C072B
RGBrgb(12, 7, 43)
HSLhsl(248, 72%, 10%)
HSVhsv(248, 84%, 17%)
CMYKcmyk(72.1%, 83.7%, 0%, 83.1%)
CIE-LABlab(3.65, 11.43, -21.62)
CIE-LCHlch(3.65, 24.46, 297.86°)
OKLaboklab(16.61% 0.0149 -0.0681)
OKLCHoklch(16.61% 0.07 282.4)
XYZxyz(0.6635, 0.4045, 2.3281)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C072B #262B07
analogous
#07142B #0C072B #1E072B
triadic
#0C072B #2B0C07 #072B0C
tetradic
#0C072B #2B0714 #262B07 #072B1E
square
#0C072B #2B0714 #262B07 #072B1E
split-complementary
#0C072B #2B1E07 #142B07
monochromatic
#07041A #07041A #0C072B #1B1060 #291894

Accessibility & contrast

On white

19.43
#0C072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C072B
19.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C072B#FFFFFF#000000##FFFFFF
##0C072B1.0019.431.0819.43
#FFFFFF19.431.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2C
Deuteranopia (green-blind)
#000C2A
Tritanopia (blue-blind)
#001017
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c072b;
/* rgb */ color: rgb(12, 7, 43);
/* oklch */ color: oklch(16.6% 0.070 282.4);
Tailwind
colors: {
  custom: {
    50: '#4d4964',
    500: '#0c072b',
    950: '#000000',
  },
}
SCSS
$custom: #0c072b;
$custom-light: #4d4964;
$custom-dark: #000000;
JSON
{
  "hex": "#0c072b",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 248.333,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16615,
    "c": 0.06969,
    "h": 282.4
  },
  "luminance": 0.00405
}

Semantic roles & 50–950 ramp

primary
#0C072B
secondary
#616B23
accent
#EF39D5
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #0C072B

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

Preview Lab → · Contrast checker → · Palette generator →

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