#0C0845#0C0845

#0C0845 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.1% C 0.107 H 273.9°. Best body text is #FFFFFF at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#0C0845
RGBrgb(12, 8, 69)
HSLhsl(244, 79%, 15%)
HSVhsv(244, 88%, 27%)
CMYKcmyk(82.6%, 88.4%, 0%, 72.9%)
CIE-LABlab(6.16, 24.45, -36.58)
CIE-LCHlch(6.16, 44.00, 303.76°)
OKLaboklab(20.06% 0.0073 -0.1066)
OKLCHoklch(20.06% 0.107 273.9)
XYZxyz(1.3123, 0.6814, 5.6914)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0845 #414508
analogous
#082345 #0C0845 #2A0845
triadic
#0C0845 #450C08 #08450C
tetradic
#0C0845 #450823 #414508 #08452A
square
#0C0845 #450823 #414508 #08452A
split-complementary
#0C0845 #452A08 #234508
monochromatic
#05031B #05031B #0C0845 #160E7C #1F15B3

Accessibility & contrast

On white

18.48
#0C0845 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0845
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0845#FFFFFF#000000##FFFFFF
##0C08451.0018.481.1418.48
#FFFFFF18.481.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001647
Deuteranopia (green-blind)
#001144
Tritanopia (blue-blind)
#001B26
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0c0845;
/* rgb */ color: rgb(12, 8, 69);
/* oklch */ color: oklch(20.1% 0.107 273.9);
Tailwind
colors: {
  custom: {
    50: '#564979',
    500: '#0c0845',
    950: '#000000',
  },
}
SCSS
$custom: #0c0845;
$custom-light: #564979;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0845",
  "rgb": {
    "r": 12,
    "g": 8,
    "b": 69
  },
  "hsl": {
    "h": 243.934,
    "s": 79.221,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2006,
    "c": 0.10689,
    "h": 273.9
  },
  "luminance": 0.00681
}

Semantic roles & 50–950 ramp

primary
#0C0845
secondary
#7D8326
accent
#F632E9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #0C0845

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

Preview Lab → · Contrast checker → · Palette generator →

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