#0C0747#0C0747

#0C0747 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.2% C 0.111 H 273.7°. Best body text is #FFFFFF at 18.47:1 contrast (WCAG AA passes).

Color values

HEX#0C0747
RGBrgb(12, 7, 71)
HSLhsl(245, 82%, 15%)
HSVhsv(245, 90%, 28%)
CMYKcmyk(83.1%, 90.1%, 0%, 72.2%)
CIE-LABlab(6.19, 25.89, -37.94)
CIE-LCHlch(6.19, 45.93, 304.31°)
OKLaboklab(20.17% 0.0072 -0.1105)
OKLCHoklch(20.17% 0.111 273.7)
XYZxyz(1.3646, 0.6849, 6.0203)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0747 #424707
analogous
#072247 #0C0747 #2C0747
triadic
#0C0747 #470C07 #07470C
tetradic
#0C0747 #470722 #424707 #07472C
square
#0C0747 #470722 #424707 #07472C
split-complementary
#0C0747 #472C07 #224707
monochromatic
#05031C #05031C #0C0747 #150C7F #1F12B6

Accessibility & contrast

On white

18.47
#0C0747 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#0C0747 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0747
18.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0747#FFFFFF#000000##FFFFFF
##0C07471.0018.471.1418.47
#FFFFFF18.471.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001749
Deuteranopia (green-blind)
#001146
Tritanopia (blue-blind)
#001B27
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0c0747;
/* rgb */ color: rgb(12, 7, 71);
/* oklch */ color: oklch(20.2% 0.111 273.7);
Tailwind
colors: {
  custom: {
    50: '#57497b',
    500: '#0c0747',
    950: '#000000',
  },
}
SCSS
$custom: #0c0747;
$custom-light: #57497b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0747",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 71
  },
  "hsl": {
    "h": 244.688,
    "s": 82.051,
    "l": 15.294
  },
  "oklch": {
    "l": 0.20165,
    "c": 0.11076,
    "h": 273.7
  },
  "luminance": 0.00685
}

Semantic roles & 50–950 ramp

primary
#0C0747
secondary
#7E8624
accent
#F82FE9
background
#F5F4F7
surface
#E9E6EE
border
#C5C2C9
text
#040009
muted
#79777B

Preview Lab

Preview with #0C0747

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

Preview Lab → · Contrast checker → · Palette generator →

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