#0C072E#0C072E

#0C072E is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 17.0% C 0.074 H 281.1°. Best body text is #FFFFFF at 19.35:1 contrast (WCAG AA passes).

Color values

HEX#0C072E
RGBrgb(12, 7, 46)
HSLhsl(248, 74%, 10%)
HSVhsv(248, 85%, 18%)
CMYKcmyk(73.9%, 84.8%, 0%, 82%)
CIE-LABlab(3.86, 12.88, -23.56)
CIE-LCHlch(3.86, 26.85, 298.67°)
OKLaboklab(16.96% 0.0143 -0.0731)
OKLCHoklch(16.96% 0.074 281.1)
XYZxyz(0.7206, 0.4273, 2.6287)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C072E #292E07
analogous
#07152E #0C072E #1F072E
triadic
#0C072E #2E0C07 #072E0C
tetradic
#0C072E #2E0715 #292E07 #072E1F
square
#0C072E #2E0715 #292E07 #072E1F
split-complementary
#0C072E #2E1F07 #152E07
monochromatic
#07041B #07041B #0C072E #1A0F63 #281798

Accessibility & contrast

On white

19.35
#0C072E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C072E
19.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C072E#FFFFFF#000000##FFFFFF
##0C072E1.0019.351.0919.35
#FFFFFF19.351.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2F
Deuteranopia (green-blind)
#000C2D
Tritanopia (blue-blind)
#001119
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0c072e;
/* rgb */ color: rgb(12, 7, 46);
/* oklch */ color: oklch(17.0% 0.074 281.1);
Tailwind
colors: {
  custom: {
    50: '#4e4967',
    500: '#0c072e',
    950: '#000000',
  },
}
SCSS
$custom: #0c072e;
$custom-light: #4e4967;
$custom-dark: #000000;
JSON
{
  "hex": "#0c072e",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 46
  },
  "hsl": {
    "h": 247.692,
    "s": 73.585,
    "l": 10.392
  },
  "oklch": {
    "l": 0.16964,
    "c": 0.07446,
    "h": 281.1
  },
  "luminance": 0.00427
}

Semantic roles & 50–950 ramp

primary
#0C072E
secondary
#646E23
accent
#F038D9
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C072E

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

Preview Lab → · Contrast checker → · Palette generator →

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