#0C062B#0C062B

#0C062B is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.4% C 0.072 H 283.2°. Best body text is #FFFFFF at 19.51:1 contrast (WCAG AA passes).

Color values

HEX#0C062B
RGBrgb(12, 6, 43)
HSLhsl(250, 76%, 10%)
HSVhsv(250, 86%, 17%)
CMYKcmyk(72.1%, 86%, 0%, 83.1%)
CIE-LABlab(3.46, 11.83, -21.93)
CIE-LCHlch(3.46, 24.92, 298.35°)
OKLaboklab(16.37% 0.0163 -0.0697)
OKLCHoklch(16.37% 0.072 283.2)
XYZxyz(0.6527, 0.3828, 2.3245)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C062B #252B06
analogous
#06132B #0C062B #1F062B
triadic
#0C062B #2B0C06 #062B0C
tetradic
#0C062B #2B0613 #252B06 #062B1F
square
#0C062B #2B0613 #252B06 #062B1F
split-complementary
#0C062B #2B1F06 #132B06
monochromatic
#07041B #07041B #0C062B #1B0D61 #2A1596

Accessibility & contrast

On white

19.51
#0C062B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C062B
19.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C062B#FFFFFF#000000##FFFFFF
##0C062B1.0019.511.0819.51
#FFFFFF19.511.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2C
Deuteranopia (green-blind)
#000B2A
Tritanopia (blue-blind)
#010F17
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c062b;
/* rgb */ color: rgb(12, 6, 43);
/* oklch */ color: oklch(16.4% 0.072 283.2);
Tailwind
colors: {
  custom: {
    50: '#4d4964',
    500: '#0c062b',
    950: '#000000',
  },
}
SCSS
$custom: #0c062b;
$custom-light: #4d4964;
$custom-dark: #000000;
JSON
{
  "hex": "#0c062b",
  "rgb": {
    "r": 12,
    "g": 6,
    "b": 43
  },
  "hsl": {
    "h": 249.73,
    "s": 75.51,
    "l": 9.608
  },
  "oklch": {
    "l": 0.16374,
    "c": 0.07157,
    "h": 283.2
  },
  "luminance": 0.00383
}

Semantic roles & 50–950 ramp

primary
#0C062B
secondary
#606C21
accent
#F236D4
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #0C062B

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

Preview Lab → · Contrast checker → · Palette generator →

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