#0C0C2E#0C0C2E

#0C0C2E is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.1% C 0.066 H 277.4°. Best body text is #FFFFFF at 18.96:1 contrast (WCAG AA passes).

Color values

HEX#0C0C2E
RGBrgb(12, 12, 46)
HSLhsl(240, 59%, 11%)
HSVhsv(240, 74%, 18%)
CMYKcmyk(73.9%, 73.9%, 0%, 82%)
CIE-LABlab(4.86, 10.83, -21.97)
CIE-LCHlch(4.86, 24.50, 296.25°)
OKLaboklab(18.06% 0.0086 -0.0658)
OKLCHoklch(18.06% 0.066 277.4)
XYZxyz(0.7761, 0.5383, 2.6472)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0C2E #2E2E0C
analogous
#0C1D2E #0C0C2E #1D0C2E
triadic
#0C0C2E #2E0C0C #0C2E0C
tetradic
#0C0C2E #2E0C1D #2E2E0C #0C2E1D
square
#0C0C2E #2E0C1D #2E2E0C #0C2E1D
split-complementary
#0C0C2E #2E1D0C #1D2E0C
monochromatic
#060618 #060618 #0C0C2E #19195F #25258F

Accessibility & contrast

On white

18.96
#0C0C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#0C0C2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0C2E
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0C2E#FFFFFF#000000##FFFFFF
##0C0C2E1.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122F
Deuteranopia (green-blind)
#000F2D
Tritanopia (blue-blind)
#00141B
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #0c0c2e;
/* rgb */ color: rgb(12, 12, 46);
/* oklch */ color: oklch(18.1% 0.066 277.4);
Tailwind
colors: {
  custom: {
    50: '#4e4c67',
    500: '#0c0c2e',
    950: '#000000',
  },
}
SCSS
$custom: #0c0c2e;
$custom-light: #4e4c67;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0c2e",
  "rgb": {
    "r": 12,
    "g": 12,
    "b": 46
  },
  "hsl": {
    "h": 240,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.18057,
    "c": 0.06639,
    "h": 277.4
  },
  "luminance": 0.00538
}

Semantic roles & 50–950 ramp

primary
#0C0C2E
secondary
#6A6A2C
accent
#E246E2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C0C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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