#0C073E#0C073E

#0C073E is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.0% C 0.098 H 275.8°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#0C073E
RGBrgb(12, 7, 62)
HSLhsl(245, 80%, 14%)
HSVhsv(245, 89%, 24%)
CMYKcmyk(80.6%, 88.7%, 0%, 75.7%)
CIE-LABlab(5.22, 21.53, -33.12)
CIE-LCHlch(5.22, 39.50, 303.02°)
OKLaboklab(18.97% 0.0099 -0.0978)
OKLCHoklch(18.97% 0.098 275.8)
XYZxyz(1.0968, 0.5778, 4.6102)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C073E #393E07
analogous
#071D3E #0C073E #27073E
triadic
#0C073E #3E0C07 #073E0C
tetradic
#0C073E #3E071D #393E07 #073E27
square
#0C073E #3E071D #393E07 #073E27
split-complementary
#0C073E #3E2707 #1D3E07
monochromatic
#05031B #05031B #0C073E #170D75 #2113AC

Accessibility & contrast

On white

18.82
#0C073E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#0C073E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C073E
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C073E#FFFFFF#000000##FFFFFF
##0C073E1.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001440
Deuteranopia (green-blind)
#000F3D
Tritanopia (blue-blind)
#001722
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0c073e;
/* rgb */ color: rgb(12, 7, 62);
/* oklch */ color: oklch(19.0% 0.098 275.8);
Tailwind
colors: {
  custom: {
    50: '#544974',
    500: '#0c073e',
    950: '#000000',
  },
}
SCSS
$custom: #0c073e;
$custom-light: #544974;
$custom-dark: #000000;
JSON
{
  "hex": "#0c073e",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 62
  },
  "hsl": {
    "h": 245.455,
    "s": 79.71,
    "l": 13.529
  },
  "oklch": {
    "l": 0.18967,
    "c": 0.09827,
    "h": 275.8
  },
  "luminance": 0.00578
}

Semantic roles & 50–950 ramp

primary
#0C073E
secondary
#757D24
accent
#F632E4
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0C073E

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

Preview Lab → · Contrast checker → · Palette generator →

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