#0C0636#0C0636

#0C0636 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.7% C 0.088 H 278.6°. Best body text is #FFFFFF at 19.18:1 contrast (WCAG AA passes).

Color values

HEX#0C0636
RGBrgb(12, 6, 54)
HSLhsl(248, 80%, 12%)
HSVhsv(248, 89%, 21%)
CMYKcmyk(77.8%, 88.9%, 0%, 78.8%)
CIE-LABlab(4.29, 17.64, -28.82)
CIE-LCHlch(4.29, 33.79, 301.47°)
OKLaboklab(17.73% 0.0132 -0.0872)
OKLCHoklch(17.73% 0.088 278.6)
XYZxyz(0.8824, 0.4747, 3.5344)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0636 #303606
analogous
#061836 #0C0636 #240636
triadic
#0C0636 #360C06 #06360C
tetradic
#0C0636 #360618 #303606 #063624
square
#0C0636 #360618 #303606 #063624
split-complementary
#0C0636 #362406 #183606
monochromatic
#06031C #06031C #0C0636 #180C6D #2412A4

Accessibility & contrast

On white

19.18
#0C0636 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#0C0636 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0636
19.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0636#FFFFFF#000000##FFFFFF
##0C06361.0019.181.1019.18
#FFFFFF19.181.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001137
Deuteranopia (green-blind)
#000D35
Tritanopia (blue-blind)
#00141D
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #0c0636;
/* rgb */ color: rgb(12, 6, 54);
/* oklch */ color: oklch(17.7% 0.088 278.6);
Tailwind
colors: {
  custom: {
    50: '#51486d',
    500: '#0c0636',
    950: '#000000',
  },
}
SCSS
$custom: #0c0636;
$custom-light: #51486d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0636",
  "rgb": {
    "r": 12,
    "g": 6,
    "b": 54
  },
  "hsl": {
    "h": 247.5,
    "s": 80,
    "l": 11.765
  },
  "oklch": {
    "l": 0.17734,
    "c": 0.08818,
    "h": 278.6
  },
  "luminance": 0.00475
}

Semantic roles & 50–950 ramp

primary
#0C0636
secondary
#6C7621
accent
#F631DE
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0636

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

Preview Lab → · Contrast checker → · Palette generator →

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