#0C002C#0C002C

#0C002C is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 14.9% C 0.086 H 286.9°. Best body text is #FFFFFF at 19.96:1 contrast (WCAG AA passes).

Color values

HEX#0C002C
RGBrgb(12, 0, 44)
HSLhsl(256, 100%, 9%)
HSVhsv(256, 100%, 17%)
CMYKcmyk(72.7%, 100%, 0%, 82.7%)
CIE-LABlab(2.35, 14.71, -24.45)
CIE-LCHlch(2.35, 28.53, 301.03°)
OKLaboklab(14.9% 0.025 -0.0823)
OKLCHoklch(14.9% 0.086 286.9)
XYZxyz(0.6061, 0.2600, 2.4006)
Luminance0.0026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C002C #202C00
analogous
#000A2C #0C002C #22002C
triadic
#0C002C #2C0C00 #002C0C
tetradic
#0C002C #2C000A #202C00 #002C22
square
#0C002C #2C000A #202C00 #002C22
split-complementary
#0C002C #2C2200 #0A2C00
monochromatic
#08001F #08001F #0C002C #1D0069 #2D00A6

Accessibility & contrast

On white

19.96
#0C002C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#0C002C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C002C
19.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C002C#FFFFFF#000000##FFFFFF
##0C002C1.0019.961.0519.96
#FFFFFF19.961.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A2D
Deuteranopia (green-blind)
#00072B
Tritanopia (blue-blind)
#000B15
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #0c002c;
/* rgb */ color: rgb(12, 0, 44);
/* oklch */ color: oklch(14.9% 0.086 286.9);
Tailwind
colors: {
  custom: {
    50: '#4d4665',
    500: '#0c002c',
    950: '#000000',
  },
}
SCSS
$custom: #0c002c;
$custom-light: #4d4665;
$custom-dark: #000000;
JSON
{
  "hex": "#0c002c",
  "rgb": {
    "r": 12,
    "g": 0,
    "b": 44
  },
  "hsl": {
    "h": 256.364,
    "s": 100,
    "l": 8.627
  },
  "oklch": {
    "l": 0.14898,
    "c": 0.08597,
    "h": 286.9
  },
  "luminance": 0.0026
}

Semantic roles & 50–950 ramp

primary
#0C002C
secondary
#5A7314
accent
#FF29C5
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C002C

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

Preview Lab → · Contrast checker → · Palette generator →

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