#0C062E#0C062E

#0C062E is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.7% C 0.076 H 281.7°. Best body text is #FFFFFF at 19.42:1 contrast (WCAG AA passes).

Color values

HEX#0C062E
RGBrgb(12, 6, 46)
HSLhsl(249, 77%, 10%)
HSVhsv(249, 87%, 18%)
CMYKcmyk(73.9%, 87%, 0%, 82%)
CIE-LABlab(3.66, 13.28, -23.87)
CIE-LCHlch(3.66, 27.32, 299.08°)
OKLaboklab(16.73% 0.0155 -0.0746)
OKLCHoklch(16.73% 0.076 281.7)
XYZxyz(0.7097, 0.4056, 2.6251)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C062E #282E06
analogous
#06142E #0C062E #20062E
triadic
#0C062E #2E0C06 #062E0C
tetradic
#0C062E #2E0614 #282E06 #062E20
square
#0C062E #2E0614 #282E06 #062E20
split-complementary
#0C062E #2E2006 #142E06
monochromatic
#07041B #07041B #0C062E #1A0D64 #28149A

Accessibility & contrast

On white

19.42
#0C062E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C062E
19.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C062E#FFFFFF#000000##FFFFFF
##0C062E1.0019.421.0819.42
#FFFFFF19.421.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c062e;
/* rgb */ color: rgb(12, 6, 46);
/* oklch */ color: oklch(16.7% 0.076 281.7);
Tailwind
colors: {
  custom: {
    50: '#4e4967',
    500: '#0c062e',
    950: '#000000',
  },
}
SCSS
$custom: #0c062e;
$custom-light: #4e4967;
$custom-dark: #000000;
JSON
{
  "hex": "#0c062e",
  "rgb": {
    "r": 12,
    "g": 6,
    "b": 46
  },
  "hsl": {
    "h": 249,
    "s": 76.923,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16733,
    "c": 0.07621,
    "h": 281.7
  },
  "luminance": 0.00406
}

Semantic roles & 50–950 ramp

primary
#0C062E
secondary
#636F21
accent
#F334D7
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C062E

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

Preview Lab → · Contrast checker → · Palette generator →

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