#0C073A#0C073A

#0C073A is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.4% C 0.093 H 276.9°. Best body text is #FFFFFF at 18.97:1 contrast (WCAG AA passes).

Color values

HEX#0C073A
RGBrgb(12, 7, 58)
HSLhsl(246, 78%, 13%)
HSVhsv(246, 88%, 23%)
CMYKcmyk(79.3%, 87.9%, 0%, 77.3%)
CIE-LABlab(4.84, 19.42, -30.85)
CIE-LCHlch(4.84, 36.46, 302.19°)
OKLaboklab(18.45% 0.0111 -0.0919)
OKLCHoklch(18.45% 0.093 276.9)
XYZxyz(0.9911, 0.5355, 4.0533)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C073A #353A07
analogous
#071C3A #0C073A #25073A
triadic
#0C073A #3A0C07 #073A0C
tetradic
#0C073A #3A071C #353A07 #073A25
square
#0C073A #3A071C #353A07 #073A25
split-complementary
#0C073A #3A2507 #1C3A07
monochromatic
#06031B #06031B #0C073A #170E71 #2314A7

Accessibility & contrast

On white

18.97
#0C073A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C073A
18.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C073A#FFFFFF#000000##FFFFFF
##0C073A1.0018.971.1118.97
#FFFFFF18.971.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133B
Deuteranopia (green-blind)
#000E39
Tritanopia (blue-blind)
#001620
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #0c073a;
/* rgb */ color: rgb(12, 7, 58);
/* oklch */ color: oklch(18.4% 0.093 276.9);
Tailwind
colors: {
  custom: {
    50: '#524971',
    500: '#0c073a',
    950: '#000000',
  },
}
SCSS
$custom: #0c073a;
$custom-light: #524971;
$custom-dark: #000000;
JSON
{
  "hex": "#0c073a",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 58
  },
  "hsl": {
    "h": 245.882,
    "s": 78.462,
    "l": 12.745
  },
  "oklch": {
    "l": 0.18448,
    "c": 0.09254,
    "h": 276.9
  },
  "luminance": 0.00536
}

Semantic roles & 50–950 ramp

primary
#0C073A
secondary
#717923
accent
#F533E2
background
#F4F4F6
surface
#E8E6EC
border
#C4C2C7
text
#030007
muted
#78777A

Preview Lab

Preview with #0C073A

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

Preview Lab → · Contrast checker → · Palette generator →

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