#0C012C#0C012C

#0C012C is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.2% C 0.084 H 286.2°. Best body text is #FFFFFF at 19.88:1 contrast (WCAG AA passes).

Color values

HEX#0C012C
RGBrgb(12, 1, 44)
HSLhsl(255, 96%, 9%)
HSVhsv(255, 98%, 17%)
CMYKcmyk(72.7%, 97.7%, 0%, 82.7%)
CIE-LABlab(2.54, 14.31, -24.14)
CIE-LCHlch(2.54, 28.06, 300.66°)
OKLaboklab(15.19% 0.0233 -0.0802)
OKLCHoklch(15.19% 0.084 286.2)
XYZxyz(0.6170, 0.2817, 2.4042)
Luminance0.0028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C012C #212C01
analogous
#010C2C #0C012C #22012C
triadic
#0C012C #2C0C01 #012C0C
tetradic
#0C012C #2C010C #212C01 #012C22
square
#0C012C #2C010C #212C01 #012C22
split-complementary
#0C012C #2C2201 #0C2C01
monochromatic
#08011E #08011E #0C012C #1C0268 #2D04A4

Accessibility & contrast

On white

19.88
#0C012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C012C
19.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C012C#FFFFFF#000000##FFFFFF
##0C012C1.0019.881.0619.88
#FFFFFF19.881.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c012c;
/* rgb */ color: rgb(12, 1, 44);
/* oklch */ color: oklch(15.2% 0.084 286.2);
Tailwind
colors: {
  custom: {
    50: '#4d4765',
    500: '#0c012c',
    950: '#000000',
  },
}
SCSS
$custom: #0c012c;
$custom-light: #4d4765;
$custom-dark: #000000;
JSON
{
  "hex": "#0c012c",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 255.349,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.15188,
    "c": 0.08358,
    "h": 286.2
  },
  "luminance": 0.00282
}

Semantic roles & 50–950 ramp

primary
#0C012C
secondary
#5B7217
accent
#FF29C8
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0C012C

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

Preview Lab → · Contrast checker → · Palette generator →

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