#0C0849#0C0849

#0C0849 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.6% C 0.112 H 273.2°. Best body text is #FFFFFF at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#0C0849
RGBrgb(12, 8, 73)
HSLhsl(244, 80%, 16%)
HSVhsv(244, 89%, 29%)
CMYKcmyk(83.6%, 89%, 0%, 71.4%)
CIE-LABlab(6.62, 26.25, -38.63)
CIE-LCHlch(6.62, 46.70, 304.19°)
OKLaboklab(20.59% 0.0062 -0.1122)
OKLCHoklch(20.59% 0.112 273.2)
XYZxyz(1.4406, 0.7327, 6.3675)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0849 #454908
analogous
#082449 #0C0849 #2C0849
triadic
#0C0849 #490C08 #08490C
tetradic
#0C0849 #490824 #454908 #08492C
square
#0C0849 #490824 #454908 #08492C
split-complementary
#0C0849 #492C08 #244908
monochromatic
#05031C #05031C #0C0849 #150E80 #1E14B7

Accessibility & contrast

On white

18.32
#0C0849 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#0C0849 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0849
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0849#FFFFFF#000000##FFFFFF
##0C08491.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00184B
Deuteranopia (green-blind)
#001148
Tritanopia (blue-blind)
#001C29
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0c0849;
/* rgb */ color: rgb(12, 8, 73);
/* oklch */ color: oklch(20.6% 0.112 273.2);
Tailwind
colors: {
  custom: {
    50: '#58497d',
    500: '#0c0849',
    950: '#000000',
  },
}
SCSS
$custom: #0c0849;
$custom-light: #58497d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0849",
  "rgb": {
    "r": 12,
    "g": 8,
    "b": 73
  },
  "hsl": {
    "h": 243.692,
    "s": 80.247,
    "l": 15.882
  },
  "oklch": {
    "l": 0.20593,
    "c": 0.11238,
    "h": 273.2
  },
  "luminance": 0.00733
}

Semantic roles & 50–950 ramp

primary
#0C0849
secondary
#818726
accent
#F731EB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0C0849

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

Preview Lab → · Contrast checker → · Palette generator →

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