#0C0D39#0C0D39

#0C0D39 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.5% C 0.083 H 274.6°. Best body text is #FFFFFF at 18.55:1 contrast (WCAG AA passes).

Color values

HEX#0C0D39
RGBrgb(12, 13, 57)
HSLhsl(239, 65%, 14%)
HSVhsv(239, 79%, 22%)
CMYKcmyk(78.9%, 77.2%, 0%, 77.6%)
CIE-LABlab(5.97, 16.07, -28.29)
CIE-LCHlch(5.97, 32.53, 299.60°)
OKLaboklab(19.47% 0.0066 -0.0827)
OKLCHoklch(19.47% 0.083 274.6)
XYZxyz(1.0338, 0.6613, 3.9433)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D39 #39380C
analogous
#0C2339 #0C0D39 #210C39
triadic
#0C0D39 #390C0D #0D390C
tetradic
#0C0D39 #390C23 #39380C #0C3921
square
#0C0D39 #390C23 #39380C #0C3921
split-complementary
#0C0D39 #39210C #23390C
monochromatic
#050619 #050619 #0C0D39 #17196C #21249E

Accessibility & contrast

On white

18.55
#0C0D39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0D39
18.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D39#FFFFFF#000000##FFFFFF
##0C0D391.0018.551.1318.55
#FFFFFF18.551.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#001138
Tritanopia (blue-blind)
#001921
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0c0d39;
/* rgb */ color: rgb(12, 13, 57);
/* oklch */ color: oklch(19.5% 0.083 274.6);
Tailwind
colors: {
  custom: {
    50: '#524c70',
    500: '#0c0d39',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d39;
$custom-light: #524c70;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d39",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 57
  },
  "hsl": {
    "h": 238.667,
    "s": 65.217,
    "l": 13.529
  },
  "oklch": {
    "l": 0.19469,
    "c": 0.08293,
    "h": 274.6
  },
  "luminance": 0.00661
}

Semantic roles & 50–950 ramp

primary
#0C0D39
secondary
#75732C
accent
#E440E8
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #0C0D39

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

Preview Lab → · Contrast checker → · Palette generator →

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