#0C073C#0C073C

#0C073C is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.7% C 0.095 H 276.3°. Best body text is #FFFFFF at 18.90:1 contrast (WCAG AA passes).

Color values

HEX#0C073C
RGBrgb(12, 7, 60)
HSLhsl(246, 79%, 13%)
HSVhsv(246, 88%, 24%)
CMYKcmyk(80%, 88.3%, 0%, 76.5%)
CIE-LABlab(5.03, 20.48, -32.00)
CIE-LCHlch(5.03, 37.99, 302.62°)
OKLaboklab(18.71% 0.0105 -0.0948)
OKLCHoklch(18.71% 0.095 276.3)
XYZxyz(1.0429, 0.5563, 4.3265)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C073C #373C07
analogous
#071C3C #0C073C #26073C
triadic
#0C073C #3C0C07 #073C0C
tetradic
#0C073C #3C071C #373C07 #073C26
square
#0C073C #3C071C #373C07 #073C26
split-complementary
#0C073C #3C2607 #1C3C07
monochromatic
#05031B #05031B #0C073C #170D73 #2214AA

Accessibility & contrast

On white

18.90
#0C073C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#0C073C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C073C
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C073C#FFFFFF#000000##FFFFFF
##0C073C1.0018.901.1118.90
#FFFFFF18.901.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133E
Deuteranopia (green-blind)
#000F3B
Tritanopia (blue-blind)
#001721
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0c073c;
/* rgb */ color: rgb(12, 7, 60);
/* oklch */ color: oklch(18.7% 0.095 276.3);
Tailwind
colors: {
  custom: {
    50: '#534972',
    500: '#0c073c',
    950: '#000000',
  },
}
SCSS
$custom: #0c073c;
$custom-light: #534972;
$custom-dark: #000000;
JSON
{
  "hex": "#0c073c",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 60
  },
  "hsl": {
    "h": 245.66,
    "s": 79.104,
    "l": 13.137
  },
  "oklch": {
    "l": 0.18706,
    "c": 0.09542,
    "h": 276.3
  },
  "luminance": 0.00556
}

Semantic roles & 50–950 ramp

primary
#0C073C
secondary
#737B23
accent
#F632E3
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0C073C

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

Preview Lab → · Contrast checker → · Palette generator →

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