#0C062D#0C062D

#0C062D is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.6% C 0.075 H 282.2°. Best body text is #FFFFFF at 19.45:1 contrast (WCAG AA passes).

Color values

HEX#0C062D
RGBrgb(12, 6, 45)
HSLhsl(249, 76%, 10%)
HSVhsv(249, 87%, 18%)
CMYKcmyk(73.3%, 86.7%, 0%, 82.4%)
CIE-LABlab(3.59, 12.79, -23.23)
CIE-LCHlch(3.59, 26.52, 298.83°)
OKLaboklab(16.61% 0.0158 -0.073)
OKLCHoklch(16.61% 0.075 282.2)
XYZxyz(0.6903, 0.3978, 2.5225)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C062D #272D06
analogous
#06132D #0C062D #20062D
triadic
#0C062D #2D0C06 #062D0C
tetradic
#0C062D #2D0613 #272D06 #062D20
square
#0C062D #2D0613 #272D06 #062D20
split-complementary
#0C062D #2D2006 #132D06
monochromatic
#07041B #07041B #0C062D #1A0D63 #291499

Accessibility & contrast

On white

19.45
#0C062D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C062D
19.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C062D#FFFFFF#000000##FFFFFF
##0C062D1.0019.451.0819.45
#FFFFFF19.451.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2E
Deuteranopia (green-blind)
#000B2C
Tritanopia (blue-blind)
#001018
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c062d;
/* rgb */ color: rgb(12, 6, 45);
/* oklch */ color: oklch(16.6% 0.075 282.2);
Tailwind
colors: {
  custom: {
    50: '#4e4966',
    500: '#0c062d',
    950: '#000000',
  },
}
SCSS
$custom: #0c062d;
$custom-light: #4e4966;
$custom-dark: #000000;
JSON
{
  "hex": "#0c062d",
  "rgb": {
    "r": 12,
    "g": 6,
    "b": 45
  },
  "hsl": {
    "h": 249.231,
    "s": 76.471,
    "l": 10
  },
  "oklch": {
    "l": 0.16612,
    "c": 0.07468,
    "h": 282.2
  },
  "luminance": 0.00398
}

Semantic roles & 50–950 ramp

primary
#0C062D
secondary
#626E21
accent
#F335D6
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C062D

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

Preview Lab → · Contrast checker → · Palette generator →

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