#0C0731#0C0731

#0C0731 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.3% C 0.079 H 279.9°. Best body text is #FFFFFF at 19.26:1 contrast (WCAG AA passes).

Color values

HEX#0C0731
RGBrgb(12, 7, 49)
HSLhsl(247, 75%, 11%)
HSVhsv(247, 86%, 19%)
CMYKcmyk(75.5%, 85.7%, 0%, 80.8%)
CIE-LABlab(4.08, 14.43, -25.45)
CIE-LCHlch(4.08, 29.26, 299.56°)
OKLaboklab(17.32% 0.0136 -0.0779)
OKLCHoklch(17.32% 0.079 279.9)
XYZxyz(0.7818, 0.4518, 2.9511)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0731 #2C3107
analogous
#071731 #0C0731 #210731
triadic
#0C0731 #310C07 #07310C
tetradic
#0C0731 #310717 #2C3107 #073121
square
#0C0731 #310717 #2C3107 #073121
split-complementary
#0C0731 #312107 #173107
monochromatic
#07041B #07041B #0C0731 #190F67 #26169C

Accessibility & contrast

On white

19.26
#0C0731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#0C0731 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0731
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0731#FFFFFF#000000##FFFFFF
##0C07311.0019.261.0919.26
#FFFFFF19.261.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001032
Deuteranopia (green-blind)
#000D30
Tritanopia (blue-blind)
#00121B
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0c0731;
/* rgb */ color: rgb(12, 7, 49);
/* oklch */ color: oklch(17.3% 0.079 279.9);
Tailwind
colors: {
  custom: {
    50: '#4f4969',
    500: '#0c0731',
    950: '#000000',
  },
}
SCSS
$custom: #0c0731;
$custom-light: #4f4969;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0731",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 49
  },
  "hsl": {
    "h": 247.143,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.17323,
    "c": 0.07911,
    "h": 279.9
  },
  "luminance": 0.00452
}

Semantic roles & 50–950 ramp

primary
#0C0731
secondary
#677123
accent
#F236DB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C0731

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

Preview Lab → · Contrast checker → · Palette generator →

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