#0C0847#0C0847

#0C0847 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.3% C 0.110 H 273.5°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#0C0847
RGBrgb(12, 8, 71)
HSLhsl(244, 80%, 15%)
HSVhsv(244, 89%, 28%)
CMYKcmyk(83.1%, 88.7%, 0%, 72.2%)
CIE-LABlab(6.38, 25.37, -37.62)
CIE-LCHlch(6.38, 45.37, 303.99°)
OKLaboklab(20.33% 0.0067 -0.1094)
OKLCHoklch(20.33% 0.11 273.5)
XYZxyz(1.3754, 0.7066, 6.0239)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0847 #434708
analogous
#082347 #0C0847 #2B0847
triadic
#0C0847 #470C08 #08470C
tetradic
#0C0847 #470823 #434708 #08472B
square
#0C0847 #470823 #434708 #08472B
split-complementary
#0C0847 #472B08 #234708
monochromatic
#05031C #05031C #0C0847 #150E7E #1F14B5

Accessibility & contrast

On white

18.40
#0C0847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0847
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0847#FFFFFF#000000##FFFFFF
##0C08471.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0847;
/* rgb */ color: rgb(12, 8, 71);
/* oklch */ color: oklch(20.3% 0.110 273.5);
Tailwind
colors: {
  custom: {
    50: '#57497b',
    500: '#0c0847',
    950: '#000000',
  },
}
SCSS
$custom: #0c0847;
$custom-light: #57497b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0847",
  "rgb": {
    "r": 12,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 243.81,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.20325,
    "c": 0.10965,
    "h": 273.5
  },
  "luminance": 0.00707
}

Semantic roles & 50–950 ramp

primary
#0C0847
secondary
#7F8526
accent
#F632EA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #0C0847

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

Preview Lab → · Contrast checker → · Palette generator →

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