#0C0029#0C0029

#0C0029 is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 14.5% C 0.082 H 289.1°. Best body text is #FFFFFF at 20.05:1 contrast (WCAG AA passes).

Color values

HEX#0C0029
RGBrgb(12, 0, 41)
HSLhsl(258, 100%, 8%)
HSVhsv(258, 100%, 16%)
CMYKcmyk(70.7%, 100%, 0%, 83.9%)
CIE-LABlab(2.15, 13.33, -22.46)
CIE-LCHlch(2.15, 26.12, 300.68°)
OKLaboklab(14.46% 0.0269 -0.0778)
OKLCHoklch(14.46% 0.082 289.1)
XYZxyz(0.5517, 0.2382, 2.1143)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0029 #1D2900
analogous
#000829 #0C0029 #200029
triadic
#0C0029 #290C00 #00290C
tetradic
#0C0029 #290008 #1D2900 #002920
square
#0C0029 #290008 #1D2900 #002920
split-complementary
#0C0029 #292000 #082900
monochromatic
#09001F #09001F #0C0029 #1E0066 #3000A3

Accessibility & contrast

On white

20.05
#0C0029 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0029
20.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0029#FFFFFF#000000##FFFFFF
##0C00291.0020.051.0520.05
#FFFFFF20.051.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00092A
Deuteranopia (green-blind)
#000728
Tritanopia (blue-blind)
#020A14
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0c0029;
/* rgb */ color: rgb(12, 0, 41);
/* oklch */ color: oklch(14.5% 0.082 289.1);
Tailwind
colors: {
  custom: {
    50: '#4c4663',
    500: '#0c0029',
    950: '#000000',
  },
}
SCSS
$custom: #0c0029;
$custom-light: #4c4663;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0029",
  "rgb": {
    "r": 12,
    "g": 0,
    "b": 41
  },
  "hsl": {
    "h": 257.561,
    "s": 100,
    "l": 8.039
  },
  "oklch": {
    "l": 0.14462,
    "c": 0.08232,
    "h": 289.1
  },
  "luminance": 0.00238
}

Semantic roles & 50–950 ramp

primary
#0C0029
secondary
#567114
accent
#FF29C0
background
#F4F3F5
surface
#E7E5EA
border
#C3C1C6
text
#010005
muted
#777779

Preview Lab

Preview with #0C0029

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

Preview Lab → · Contrast checker → · Palette generator →

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