#0C0737#0C0737

#0C0737 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.1% C 0.088 H 277.8°. Best body text is #FFFFFF at 19.07:1 contrast (WCAG AA passes).

Color values

HEX#0C0737
RGBrgb(12, 7, 55)
HSLhsl(246, 77%, 12%)
HSVhsv(246, 87%, 22%)
CMYKcmyk(78.2%, 87.3%, 0%, 78.4%)
CIE-LABlab(4.57, 17.78, -29.10)
CIE-LCHlch(4.57, 34.10, 301.43°)
OKLaboklab(18.07% 0.012 -0.0873)
OKLCHoklch(18.07% 0.088 277.8)
XYZxyz(0.9170, 0.5059, 3.6630)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0737 #323707
analogous
#071A37 #0C0737 #240737
triadic
#0C0737 #370C07 #07370C
tetradic
#0C0737 #37071A #323707 #073724
square
#0C0737 #37071A #323707 #073724
split-complementary
#0C0737 #372407 #1A3707
monochromatic
#06031B #06031B #0C0737 #180E6D #2415A4

Accessibility & contrast

On white

19.07
#0C0737 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0737
19.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0737#FFFFFF#000000##FFFFFF
##0C07371.0019.071.1019.07
#FFFFFF19.071.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001238
Deuteranopia (green-blind)
#000E36
Tritanopia (blue-blind)
#00151E
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #0c0737;
/* rgb */ color: rgb(12, 7, 55);
/* oklch */ color: oklch(18.1% 0.088 277.8);
Tailwind
colors: {
  custom: {
    50: '#51496e',
    500: '#0c0737',
    950: '#000000',
  },
}
SCSS
$custom: #0c0737;
$custom-light: #51496e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0737",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 55
  },
  "hsl": {
    "h": 246.25,
    "s": 77.419,
    "l": 12.157
  },
  "oklch": {
    "l": 0.18066,
    "c": 0.08815,
    "h": 277.8
  },
  "luminance": 0.00506
}

Semantic roles & 50–950 ramp

primary
#0C0737
secondary
#6E7723
accent
#F434E0
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0737

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

Preview Lab → · Contrast checker → · Palette generator →

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