#0C041E#0C041E

#0C041E is a very dark, muted violet. Relative luminance 0.003; OKLCH L 14.3% C 0.056 H 294.3°. Best body text is #FFFFFF at 19.97:1 contrast (WCAG AA passes).

Color values

HEX#0C041E
RGBrgb(12, 4, 30)
HSLhsl(258, 76%, 7%)
HSVhsv(258, 87%, 12%)
CMYKcmyk(60%, 86.7%, 0%, 88.2%)
CIE-LABlab(2.34, 7.51, -13.57)
CIE-LCHlch(2.34, 15.51, 298.98°)
OKLaboklab(14.34% 0.0229 -0.0507)
OKLCHoklch(14.34% 0.056 294.3)
XYZxyz(0.4293, 0.2587, 1.2554)
Luminance0.0026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C041E #161E04
analogous
#04091E #0C041E #19041E
triadic
#0C041E #1E0C04 #041E0C
tetradic
#0C041E #1E0409 #161E04 #041E19
square
#0C041E #1E0409 #161E04 #041E19
split-complementary
#0C041E #1E1904 #091E04
monochromatic
#0B041B #0B041B #0C041E #220B54 #37128A

Accessibility & contrast

On white

19.97
#0C041E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C041E
19.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C041E#FFFFFF#000000##FFFFFF
##0C041E1.0019.971.0519.97
#FFFFFF19.971.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00091F
Deuteranopia (green-blind)
#00081D
Tritanopia (blue-blind)
#07090F
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #0c041e;
/* rgb */ color: rgb(12, 4, 30);
/* oklch */ color: oklch(14.3% 0.056 294.3);
Tailwind
colors: {
  custom: {
    50: '#4c4859',
    500: '#0c041e',
    950: '#000000',
  },
}
SCSS
$custom: #0c041e;
$custom-light: #4c4859;
$custom-dark: #000000;
JSON
{
  "hex": "#0c041e",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 30
  },
  "hsl": {
    "h": 258.462,
    "s": 76.471,
    "l": 6.667
  },
  "oklch": {
    "l": 0.1434,
    "c": 0.05561,
    "h": 294.3
  },
  "luminance": 0.00259
}

Semantic roles & 50–950 ramp

primary
#0C041E
secondary
#4C611D
accent
#F335B8
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0C041E

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

Preview Lab → · Contrast checker → · Palette generator →

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