#0C042C#0C042C

#0C042C is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.0% C 0.077 H 284.1°. Best body text is #FFFFFF at 19.64:1 contrast (WCAG AA passes).

Color values

HEX#0C042C
RGBrgb(12, 4, 44)
HSLhsl(252, 83%, 9%)
HSVhsv(252, 91%, 17%)
CMYKcmyk(72.7%, 90.9%, 0%, 82.7%)
CIE-LABlab(3.13, 13.10, -23.21)
CIE-LCHlch(3.13, 26.65, 299.45°)
OKLaboklab(16% 0.0188 -0.0747)
OKLCHoklch(16% 0.077 284.1)
XYZxyz(0.6495, 0.3468, 2.4151)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C042C #242C04
analogous
#04102C #0C042C #20042C
triadic
#0C042C #2C0C04 #042C0C
tetradic
#0C042C #2C0410 #242C04 #042C20
square
#0C042C #2C0410 #242C04 #042C20
split-complementary
#0C042C #2C2004 #102C04
monochromatic
#08031C #08031C #0C042C #1B0964 #2B0E9C

Accessibility & contrast

On white

19.64
#0C042C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C042C
19.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C042C#FFFFFF#000000##FFFFFF
##0C042C1.0019.641.0719.64
#FFFFFF19.641.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2D
Deuteranopia (green-blind)
#000A2B
Tritanopia (blue-blind)
#000E17
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0c042c;
/* rgb */ color: rgb(12, 4, 44);
/* oklch */ color: oklch(16.0% 0.077 284.1);
Tailwind
colors: {
  custom: {
    50: '#4d4865',
    500: '#0c042c',
    950: '#000000',
  },
}
SCSS
$custom: #0c042c;
$custom-light: #4d4865;
$custom-dark: #000000;
JSON
{
  "hex": "#0c042c",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 44
  },
  "hsl": {
    "h": 252,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.15996,
    "c": 0.07703,
    "h": 284.1
  },
  "luminance": 0.00347
}

Semantic roles & 50–950 ramp

primary
#0C042C
secondary
#5E6F1D
accent
#FA2ED1
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0C042C

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

Preview Lab → · Contrast checker → · Palette generator →

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