#0C012A#0C012A

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

Color values

HEX#0C012A
RGBrgb(12, 1, 42)
HSLhsl(256, 95%, 8%)
HSVhsv(256, 98%, 16%)
CMYKcmyk(71.4%, 97.6%, 0%, 83.5%)
CIE-LABlab(2.41, 13.38, -22.82)
CIE-LCHlch(2.41, 26.45, 300.38°)
OKLaboklab(14.91% 0.0244 -0.0772)
OKLCHoklch(14.91% 0.081 287.6)
XYZxyz(0.5803, 0.2670, 2.2110)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C012A #1F2A01
analogous
#010A2A #0C012A #20012A
triadic
#0C012A #2A0C01 #012A0C
tetradic
#0C012A #2A010A #1F2A01 #012A20
square
#0C012A #2A010A #1F2A01 #012A20
split-complementary
#0C012A #2A2001 #0A2A01
monochromatic
#09011E #09011E #0C012A #1D0266 #2E04A2

Accessibility & contrast

On white

19.94
#0C012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C012A
19.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C012A#FFFFFF#000000##FFFFFF
##0C012A1.0019.941.0519.94
#FFFFFF19.941.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A2B
Deuteranopia (green-blind)
#000829
Tritanopia (blue-blind)
#010B15
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #0c012a;
/* rgb */ color: rgb(12, 1, 42);
/* oklch */ color: oklch(14.9% 0.081 287.6);
Tailwind
colors: {
  custom: {
    50: '#4d4764',
    500: '#0c012a',
    950: '#000000',
  },
}
SCSS
$custom: #0c012a;
$custom-light: #4d4764;
$custom-dark: #000000;
JSON
{
  "hex": "#0c012a",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 256.098,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.14908,
    "c": 0.08099,
    "h": 287.6
  },
  "luminance": 0.00267
}

Semantic roles & 50–950 ramp

primary
#0C012A
secondary
#587016
accent
#FF29C6
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #0C012A

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

Preview Lab → · Contrast checker → · Palette generator →

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