#0C0C2D#0C0C2D

#0C0C2D is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.0% C 0.065 H 277.7°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#0C0C2D
RGBrgb(12, 12, 45)
HSLhsl(240, 58%, 11%)
HSVhsv(240, 73%, 18%)
CMYKcmyk(73.3%, 73.3%, 0%, 82.4%)
CIE-LABlab(4.79, 10.34, -21.33)
CIE-LCHlch(4.79, 23.71, 295.86°)
OKLaboklab(17.95% 0.0086 -0.0641)
OKLCHoklch(17.95% 0.065 277.7)
XYZxyz(0.7566, 0.5305, 2.5446)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0C2D #2D2D0C
analogous
#0C1C2D #0C0C2D #1C0C2D
triadic
#0C0C2D #2D0C0C #0C2D0C
tetradic
#0C0C2D #2D0C1C #2D2D0C #0C2D1C
square
#0C0C2D #2D0C1C #2D2D0C #0C2D1C
split-complementary
#0C0C2D #2D1C0C #1C2D0C
monochromatic
#060618 #060618 #0C0C2D #19195D #26268E

Accessibility & contrast

On white

18.98
#0C0C2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0C2D
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0C2D#FFFFFF#000000##FFFFFF
##0C0C2D1.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122E
Deuteranopia (green-blind)
#000F2C
Tritanopia (blue-blind)
#00141A
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #0c0c2d;
/* rgb */ color: rgb(12, 12, 45);
/* oklch */ color: oklch(18.0% 0.065 277.7);
Tailwind
colors: {
  custom: {
    50: '#4e4c66',
    500: '#0c0c2d',
    950: '#000000',
  },
}
SCSS
$custom: #0c0c2d;
$custom-light: #4e4c66;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0c2d",
  "rgb": {
    "r": 12,
    "g": 12,
    "b": 45
  },
  "hsl": {
    "h": 240,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.17953,
    "c": 0.06468,
    "h": 277.7
  },
  "luminance": 0.00531
}

Semantic roles & 50–950 ramp

primary
#0C0C2D
secondary
#69692C
accent
#E147E1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C0C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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