#0C0841#0C0841

#0C0841 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.5% C 0.101 H 274.8°. Best body text is #FFFFFF at 18.64:1 contrast (WCAG AA passes).

Color values

HEX#0C0841
RGBrgb(12, 8, 65)
HSLhsl(244, 78%, 14%)
HSVhsv(244, 88%, 25%)
CMYKcmyk(81.5%, 87.7%, 0%, 74.5%)
CIE-LABlab(5.72, 22.55, -34.45)
CIE-LCHlch(5.72, 41.18, 303.21°)
OKLaboklab(19.54% 0.0084 -0.1009)
OKLCHoklch(19.54% 0.101 274.8)
XYZxyz(1.1923, 0.6334, 5.0594)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0841 #3D4108
analogous
#082141 #0C0841 #290841
triadic
#0C0841 #410C08 #08410C
tetradic
#0C0841 #410821 #3D4108 #084129
square
#0C0841 #410821 #3D4108 #084129
split-complementary
#0C0841 #412908 #214108
monochromatic
#05031B #05031B #0C0841 #160F77 #2015AE

Accessibility & contrast

On white

18.64
#0C0841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#0C0841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0841
18.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0841#FFFFFF#000000##FFFFFF
##0C08411.0018.641.1318.64
#FFFFFF18.641.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001543
Deuteranopia (green-blind)
#001040
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0c0841;
/* rgb */ color: rgb(12, 8, 65);
/* oklch */ color: oklch(19.5% 0.101 274.8);
Tailwind
colors: {
  custom: {
    50: '#554976',
    500: '#0c0841',
    950: '#000000',
  },
}
SCSS
$custom: #0c0841;
$custom-light: #554976;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0841",
  "rgb": {
    "r": 12,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 244.211,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.19535,
    "c": 0.10128,
    "h": 274.8
  },
  "luminance": 0.00633
}

Semantic roles & 50–950 ramp

primary
#0C0841
secondary
#797F25
accent
#F533E7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C0841

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

Preview Lab → · Contrast checker → · Palette generator →

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