#0C012E#0C012E

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

Color values

HEX#0C012E
RGBrgb(12, 1, 46)
HSLhsl(255, 96%, 9%)
HSVhsv(255, 98%, 18%)
CMYKcmyk(73.9%, 97.8%, 0%, 82%)
CIE-LABlab(2.68, 15.28, -25.43)
CIE-LCHlch(2.68, 29.67, 301.01°)
OKLaboklab(15.47% 0.0222 -0.0832)
OKLCHoklch(15.47% 0.086 285)
XYZxyz(0.6555, 0.2971, 2.6070)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C012E #232E01
analogous
#010D2E #0C012E #23012E
triadic
#0C012E #2E0C01 #012E0C
tetradic
#0C012E #2E010D #232E01 #012E23
square
#0C012E #2E010D #232E01 #012E23
split-complementary
#0C012E #2E2301 #0D2E01
monochromatic
#08011E #08011E #0C012E #1C026A #2B04A6

Accessibility & contrast

On white

19.82
#0C012E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#0C012E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C012E
19.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C012E#FFFFFF#000000##FFFFFF
##0C012E1.0019.821.0619.82
#FFFFFF19.821.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2F
Deuteranopia (green-blind)
#00082D
Tritanopia (blue-blind)
#000D17
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0c012e;
/* rgb */ color: rgb(12, 1, 46);
/* oklch */ color: oklch(15.5% 0.086 285.0);
Tailwind
colors: {
  custom: {
    50: '#4e4767',
    500: '#0c012e',
    950: '#000000',
  },
}
SCSS
$custom: #0c012e;
$custom-light: #4e4767;
$custom-dark: #000000;
JSON
{
  "hex": "#0c012e",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 254.667,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15471,
    "c": 0.08617,
    "h": 285
  },
  "luminance": 0.00297
}

Semantic roles & 50–950 ramp

primary
#0C012E
secondary
#5D7417
accent
#FF29CB
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C012E

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

Preview Lab → · Contrast checker → · Palette generator →

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