#0C0837#0C0837

#0C0837 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.3% C 0.087 H 277.4°. Best body text is #FFFFFF at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#0C0837
RGBrgb(12, 8, 55)
HSLhsl(245, 75%, 12%)
HSVhsv(245, 85%, 22%)
CMYKcmyk(78.2%, 85.5%, 0%, 78.4%)
CIE-LABlab(4.77, 17.35, -28.78)
CIE-LCHlch(4.77, 33.61, 301.08°)
OKLaboklab(18.26% 0.0111 -0.086)
OKLCHoklch(18.26% 0.087 277.4)
XYZxyz(0.9278, 0.5276, 3.6666)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0837 #333708
analogous
#081C37 #0C0837 #230837
triadic
#0C0837 #370C08 #08370C
tetradic
#0C0837 #37081C #333708 #083723
square
#0C0837 #37081C #333708 #083723
split-complementary
#0C0837 #372308 #1C3708
monochromatic
#06041B #06041B #0C0837 #18106C #2318A2

Accessibility & contrast

On white

18.99
#0C0837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#0C0837 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0837
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0837#FFFFFF#000000##FFFFFF
##0C08371.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001238
Deuteranopia (green-blind)
#000E36
Tritanopia (blue-blind)
#00151E
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #0c0837;
/* rgb */ color: rgb(12, 8, 55);
/* oklch */ color: oklch(18.3% 0.087 277.4);
Tailwind
colors: {
  custom: {
    50: '#51496e',
    500: '#0c0837',
    950: '#000000',
  },
}
SCSS
$custom: #0c0837;
$custom-light: #51496e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0837",
  "rgb": {
    "r": 12,
    "g": 8,
    "b": 55
  },
  "hsl": {
    "h": 245.106,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.18264,
    "c": 0.0867,
    "h": 277.4
  },
  "luminance": 0.00528
}

Semantic roles & 50–950 ramp

primary
#0C0837
secondary
#6F7625
accent
#F137E1
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #0C0837

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

Preview Lab → · Contrast checker → · Palette generator →

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