#0C062F#0C062F

#0C062F is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.9% C 0.078 H 281.3°. Best body text is #FFFFFF at 19.39:1 contrast (WCAG AA passes).

Color values

HEX#0C062F
RGBrgb(12, 6, 47)
HSLhsl(249, 77%, 10%)
HSVhsv(249, 87%, 18%)
CMYKcmyk(74.5%, 87.2%, 0%, 81.6%)
CIE-LABlab(3.74, 13.79, -24.51)
CIE-LCHlch(3.74, 28.12, 299.36°)
OKLaboklab(16.86% 0.0152 -0.0762)
OKLCHoklch(16.86% 0.078 281.3)
XYZxyz(0.7297, 0.4136, 2.7302)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C062F #292F06
analogous
#06152F #0C062F #20062F
triadic
#0C062F #2F0C06 #062F0C
tetradic
#0C062F #2F0615 #292F06 #062F20
square
#0C062F #2F0615 #292F06 #062F20
split-complementary
#0C062F #2F2006 #152F06
monochromatic
#07031B #07031B #0C062F #1A0D65 #28149C

Accessibility & contrast

On white

19.39
#0C062F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#0C062F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C062F
19.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C062F#FFFFFF#000000##FFFFFF
##0C062F1.0019.391.0819.39
#FFFFFF19.391.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#000C2E
Tritanopia (blue-blind)
#001119
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c062f;
/* rgb */ color: rgb(12, 6, 47);
/* oklch */ color: oklch(16.9% 0.078 281.3);
Tailwind
colors: {
  custom: {
    50: '#4e4968',
    500: '#0c062f',
    950: '#000000',
  },
}
SCSS
$custom: #0c062f;
$custom-light: #4e4968;
$custom-dark: #000000;
JSON
{
  "hex": "#0c062f",
  "rgb": {
    "r": 12,
    "g": 6,
    "b": 47
  },
  "hsl": {
    "h": 248.78,
    "s": 77.358,
    "l": 10.392
  },
  "oklch": {
    "l": 0.16855,
    "c": 0.07774,
    "h": 281.3
  },
  "luminance": 0.00414
}

Semantic roles & 50–950 ramp

primary
#0C062F
secondary
#647021
accent
#F434D8
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C062F

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

Preview Lab → · Contrast checker → · Palette generator →

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