#0C042D#0C042D

#0C042D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.1% C 0.078 H 283.6°. Best body text is #FFFFFF at 19.61:1 contrast (WCAG AA passes).

Color values

HEX#0C042D
RGBrgb(12, 4, 45)
HSLhsl(252, 84%, 10%)
HSVhsv(252, 91%, 18%)
CMYKcmyk(73.3%, 91.1%, 0%, 82.4%)
CIE-LABlab(3.20, 13.59, -23.85)
CIE-LCHlch(3.20, 27.45, 299.66°)
OKLaboklab(16.12% 0.0184 -0.0763)
OKLCHoklch(16.12% 0.078 283.6)
XYZxyz(0.6685, 0.3544, 2.5153)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C042D #252D04
analogous
#04112D #0C042D #21042D
triadic
#0C042D #2D0C04 #042D0C
tetradic
#0C042D #2D0411 #252D04 #042D21
square
#0C042D #2D0411 #252D04 #042D21
split-complementary
#0C042D #2D2104 #112D04
monochromatic
#07021C #07021C #0C042D #1B0965 #2A0E9D

Accessibility & contrast

On white

19.61
#0C042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#0C042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C042D
19.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C042D#FFFFFF#000000##FFFFFF
##0C042D1.0019.611.0719.61
#FFFFFF19.611.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2E
Deuteranopia (green-blind)
#000A2C
Tritanopia (blue-blind)
#000F17
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c042d;
/* rgb */ color: rgb(12, 4, 45);
/* oklch */ color: oklch(16.1% 0.078 283.6);
Tailwind
colors: {
  custom: {
    50: '#4d4866',
    500: '#0c042d',
    950: '#000000',
  },
}
SCSS
$custom: #0c042d;
$custom-light: #4d4866;
$custom-dark: #000000;
JSON
{
  "hex": "#0c042d",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 251.707,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.16123,
    "c": 0.07849,
    "h": 283.6
  },
  "luminance": 0.00354
}

Semantic roles & 50–950 ramp

primary
#0C042D
secondary
#60701D
accent
#FA2ED2
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C042D

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

Preview Lab → · Contrast checker → · Palette generator →

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