#0C012B#0C012B

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

Color values

HEX#0C012B
RGBrgb(12, 1, 43)
HSLhsl(256, 95%, 9%)
HSVhsv(256, 98%, 17%)
CMYKcmyk(72.1%, 97.7%, 0%, 83.1%)
CIE-LABlab(2.48, 13.83, -23.48)
CIE-LCHlch(2.48, 27.25, 300.50°)
OKLaboklab(15.05% 0.0239 -0.0787)
OKLCHoklch(15.05% 0.082 286.9)
XYZxyz(0.5984, 0.2743, 2.3064)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C012B #202B01
analogous
#010B2B #0C012B #21012B
triadic
#0C012B #2B0C01 #012B0C
tetradic
#0C012B #2B010B #202B01 #012B21
square
#0C012B #2B010B #202B01 #012B21
split-complementary
#0C012B #2B2101 #0B2B01
monochromatic
#08011E #08011E #0C012B #1D0267 #2D04A3

Accessibility & contrast

On white

19.91
#0C012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C012B
19.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C012B#FFFFFF#000000##FFFFFF
##0C012B1.0019.911.0519.91
#FFFFFF19.911.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A2C
Deuteranopia (green-blind)
#00082A
Tritanopia (blue-blind)
#010C15
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #0c012b;
/* rgb */ color: rgb(12, 1, 43);
/* oklch */ color: oklch(15.0% 0.082 286.9);
Tailwind
colors: {
  custom: {
    50: '#4d4764',
    500: '#0c012b',
    950: '#000000',
  },
}
SCSS
$custom: #0c012b;
$custom-light: #4d4764;
$custom-dark: #000000;
JSON
{
  "hex": "#0c012b",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 255.714,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.15047,
    "c": 0.08228,
    "h": 286.9
  },
  "luminance": 0.00274
}

Semantic roles & 50–950 ramp

primary
#0C012B
secondary
#5A7117
accent
#FF29C7
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #0C012B

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

Preview Lab → · Contrast checker → · Palette generator →

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