#0C0026#0C0026

#0C0026 is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 14.0% C 0.079 H 291.5°. Best body text is #FFFFFF at 20.12:1 contrast (WCAG AA passes).

Color values

HEX#0C0026
RGBrgb(12, 0, 38)
HSLhsl(259, 100%, 7%)
HSVhsv(259, 100%, 15%)
CMYKcmyk(68.4%, 100%, 0%, 85.1%)
CIE-LABlab(1.97, 12.05, -20.42)
CIE-LCHlch(1.97, 23.71, 300.54°)
OKLaboklab(14.03% 0.0288 -0.0732)
OKLCHoklch(14.03% 0.079 291.5)
XYZxyz(0.5014, 0.2181, 1.8490)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0026 #1A2600
analogous
#000726 #0C0026 #1F0026
triadic
#0C0026 #260C00 #00260C
tetradic
#0C0026 #260007 #1A2600 #00261F
square
#0C0026 #260007 #1A2600 #00261F
split-complementary
#0C0026 #261F00 #072600
monochromatic
#0A001F #0A001F #0C0026 #1F0063 #3300A0

Accessibility & contrast

On white

20.12
#0C0026 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#0C0026 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0026
20.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0026#FFFFFF#000000##FFFFFF
##0C00261.0020.121.0420.12
#FFFFFF20.121.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000827
Deuteranopia (green-blind)
#000625
Tritanopia (blue-blind)
#040812
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0c0026;
/* rgb */ color: rgb(12, 0, 38);
/* oklch */ color: oklch(14.0% 0.079 291.5);
Tailwind
colors: {
  custom: {
    50: '#4c4660',
    500: '#0c0026',
    950: '#000000',
  },
}
SCSS
$custom: #0c0026;
$custom-light: #4c4660;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0026",
  "rgb": {
    "r": 12,
    "g": 0,
    "b": 38
  },
  "hsl": {
    "h": 258.947,
    "s": 100,
    "l": 7.451
  },
  "oklch": {
    "l": 0.14032,
    "c": 0.07868,
    "h": 291.5
  },
  "luminance": 0.00218
}

Semantic roles & 50–950 ramp

primary
#0C0026
secondary
#526E13
accent
#FF29BB
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#010005
muted
#777779

Preview Lab

Preview with #0C0026

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

Preview Lab → · Contrast checker → · Palette generator →

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