#0C042E#0C042E

#0C042E is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.3% C 0.080 H 283.1°. Best body text is #FFFFFF at 19.58:1 contrast (WCAG AA passes).

Color values

HEX#0C042E
RGBrgb(12, 4, 46)
HSLhsl(251, 84%, 10%)
HSVhsv(251, 91%, 18%)
CMYKcmyk(73.9%, 91.3%, 0%, 82%)
CIE-LABlab(3.27, 14.08, -24.50)
CIE-LCHlch(3.27, 28.26, 299.89°)
OKLaboklab(16.25% 0.0181 -0.0779)
OKLCHoklch(16.25% 0.08 283.1)
XYZxyz(0.6880, 0.3622, 2.6179)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C042E #262E04
analogous
#04112E #0C042E #21042E
triadic
#0C042E #2E0C04 #042E0C
tetradic
#0C042E #2E0411 #262E04 #042E21
square
#0C042E #2E0411 #262E04 #042E21
split-complementary
#0C042E #2E2104 #112E04
monochromatic
#07021C #07021C #0C042E #1B0966 #290E9F

Accessibility & contrast

On white

19.58
#0C042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C042E
19.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C042E#FFFFFF#000000##FFFFFF
##0C042E1.0019.581.0719.58
#FFFFFF19.581.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2F
Deuteranopia (green-blind)
#000A2D
Tritanopia (blue-blind)
#000F18
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c042e;
/* rgb */ color: rgb(12, 4, 46);
/* oklch */ color: oklch(16.3% 0.080 283.1);
Tailwind
colors: {
  custom: {
    50: '#4e4867',
    500: '#0c042e',
    950: '#000000',
  },
}
SCSS
$custom: #0c042e;
$custom-light: #4e4867;
$custom-dark: #000000;
JSON
{
  "hex": "#0c042e",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 251.429,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16251,
    "c": 0.07995,
    "h": 283.1
  },
  "luminance": 0.00362
}

Semantic roles & 50–950 ramp

primary
#0C042E
secondary
#61711D
accent
#FA2ED3
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C042E

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

Preview Lab → · Contrast checker → · Palette generator →

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