#0C0838#0C0838

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

Color values

HEX#0C0838
RGBrgb(12, 8, 56)
HSLhsl(245, 75%, 13%)
HSVhsv(245, 86%, 22%)
CMYKcmyk(78.6%, 85.7%, 0%, 78%)
CIE-LABlab(4.85, 17.89, -29.37)
CIE-LCHlch(4.85, 34.39, 301.35°)
OKLaboklab(18.39% 0.0109 -0.0875)
OKLCHoklch(18.39% 0.088 277.1)
XYZxyz(0.9520, 0.5373, 3.7941)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0838 #343808
analogous
#081C38 #0C0838 #240838
triadic
#0C0838 #380C08 #08380C
tetradic
#0C0838 #38081C #343808 #083824
square
#0C0838 #38081C #343808 #083824
split-complementary
#0C0838 #382408 #1C3808
monochromatic
#06041B #06041B #0C0838 #17106E #2317A3

Accessibility & contrast

On white

18.96
#0C0838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0838
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0838#FFFFFF#000000##FFFFFF
##0C08381.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001239
Deuteranopia (green-blind)
#000E37
Tritanopia (blue-blind)
#00161F
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #0c0838;
/* rgb */ color: rgb(12, 8, 56);
/* oklch */ color: oklch(18.4% 0.088 277.1);
Tailwind
colors: {
  custom: {
    50: '#52496f',
    500: '#0c0838',
    950: '#000000',
  },
}
SCSS
$custom: #0c0838;
$custom-light: #52496f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0838",
  "rgb": {
    "r": 12,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 245,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.18388,
    "c": 0.0882,
    "h": 277.1
  },
  "luminance": 0.00537
}

Semantic roles & 50–950 ramp

primary
#0C0838
secondary
#707725
accent
#F236E2
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #0C0838

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

Preview Lab → · Contrast checker → · Palette generator →

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