#0C0738#0C0738

#0C0738 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.2% C 0.090 H 277.5°. Best body text is #FFFFFF at 19.04:1 contrast (WCAG AA passes).

Color values

HEX#0C0738
RGBrgb(12, 7, 56)
HSLhsl(246, 78%, 12%)
HSVhsv(246, 88%, 22%)
CMYKcmyk(78.6%, 87.5%, 0%, 78%)
CIE-LABlab(4.66, 18.33, -29.69)
CIE-LCHlch(4.66, 34.89, 301.69°)
OKLaboklab(18.19% 0.0117 -0.0888)
OKLCHoklch(18.19% 0.09 277.5)
XYZxyz(0.9412, 0.5156, 3.7905)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0738 #333807
analogous
#071B38 #0C0738 #240738
triadic
#0C0738 #380C07 #07380C
tetradic
#0C0738 #38071B #333807 #073824
square
#0C0738 #38071B #333807 #073824
split-complementary
#0C0738 #382407 #1B3807
monochromatic
#06031B #06031B #0C0738 #180E6E #2315A5

Accessibility & contrast

On white

19.04
#0C0738 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#0C0738 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0738
19.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0738#FFFFFF#000000##FFFFFF
##0C07381.0019.041.1019.04
#FFFFFF19.041.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001239
Deuteranopia (green-blind)
#000E37
Tritanopia (blue-blind)
#00151F
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #0c0738;
/* rgb */ color: rgb(12, 7, 56);
/* oklch */ color: oklch(18.2% 0.090 277.5);
Tailwind
colors: {
  custom: {
    50: '#52496f',
    500: '#0c0738',
    950: '#000000',
  },
}
SCSS
$custom: #0c0738;
$custom-light: #52496f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0738",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 56
  },
  "hsl": {
    "h": 246.122,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.18192,
    "c": 0.08962,
    "h": 277.5
  },
  "luminance": 0.00516
}

Semantic roles & 50–950 ramp

primary
#0C0738
secondary
#6F7823
accent
#F434E1
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0738

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

Preview Lab → · Contrast checker → · Palette generator →

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