#0C012D#0C012D

#0C012D is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.3% C 0.085 H 285.6°. Best body text is #FFFFFF at 19.85:1 contrast (WCAG AA passes).

Color values

HEX#0C012D
RGBrgb(12, 1, 45)
HSLhsl(255, 96%, 9%)
HSVhsv(255, 98%, 18%)
CMYKcmyk(73.3%, 97.8%, 0%, 82.4%)
CIE-LABlab(2.61, 14.79, -24.79)
CIE-LCHlch(2.61, 28.86, 300.82°)
OKLaboklab(15.33% 0.0228 -0.0817)
OKLCHoklch(15.33% 0.085 285.6)
XYZxyz(0.6360, 0.2893, 2.5044)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C012D #222D01
analogous
#010C2D #0C012D #22012D
triadic
#0C012D #2D0C01 #012D0C
tetradic
#0C012D #2D010C #222D01 #012D22
square
#0C012D #2D010C #222D01 #012D22
split-complementary
#0C012D #2D2201 #0C2D01
monochromatic
#08011E #08011E #0C012D #1C0269 #2C04A5

Accessibility & contrast

On white

19.85
#0C012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C012D
19.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C012D#FFFFFF#000000##FFFFFF
##0C012D1.0019.851.0619.85
#FFFFFF19.851.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2E
Deuteranopia (green-blind)
#00082C
Tritanopia (blue-blind)
#000D16
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0c012d;
/* rgb */ color: rgb(12, 1, 45);
/* oklch */ color: oklch(15.3% 0.085 285.6);
Tailwind
colors: {
  custom: {
    50: '#4d4766',
    500: '#0c012d',
    950: '#000000',
  },
}
SCSS
$custom: #0c012d;
$custom-light: #4d4766;
$custom-dark: #000000;
JSON
{
  "hex": "#0c012d",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 255,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.15329,
    "c": 0.08487,
    "h": 285.6
  },
  "luminance": 0.00289
}

Semantic roles & 50–950 ramp

primary
#0C012D
secondary
#5C7317
accent
#FF29C9
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C012D

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

Preview Lab → · Contrast checker → · Palette generator →

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