#0C042F#0C042F

#0C042F is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.4% C 0.081 H 282.6°. Best body text is #FFFFFF at 19.55:1 contrast (WCAG AA passes).

Color values

HEX#0C042F
RGBrgb(12, 4, 47)
HSLhsl(251, 84%, 10%)
HSVhsv(251, 91%, 18%)
CMYKcmyk(74.5%, 91.5%, 0%, 81.6%)
CIE-LABlab(3.34, 14.59, -25.13)
CIE-LCHlch(3.34, 29.06, 300.13°)
OKLaboklab(16.38% 0.0177 -0.0795)
OKLCHoklch(16.38% 0.081 282.6)
XYZxyz(0.7080, 0.3702, 2.7229)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C042F #272F04
analogous
#04112F #0C042F #22042F
triadic
#0C042F #2F0C04 #042F0C
tetradic
#0C042F #2F0411 #272F04 #042F22
square
#0C042F #2F0411 #272F04 #042F22
split-complementary
#0C042F #2F2204 #112F04
monochromatic
#07021C #07021C #0C042F #1A0967 #290EA0

Accessibility & contrast

On white

19.55
#0C042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C042F
19.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C042F#FFFFFF#000000##FFFFFF
##0C042F1.0019.551.0719.55
#FFFFFF19.551.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D30
Deuteranopia (green-blind)
#000B2E
Tritanopia (blue-blind)
#001019
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c042f;
/* rgb */ color: rgb(12, 4, 47);
/* oklch */ color: oklch(16.4% 0.081 282.6);
Tailwind
colors: {
  custom: {
    50: '#4e4868',
    500: '#0c042f',
    950: '#000000',
  },
}
SCSS
$custom: #0c042f;
$custom-light: #4e4868;
$custom-dark: #000000;
JSON
{
  "hex": "#0c042f",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 251.163,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.16381,
    "c": 0.0814,
    "h": 282.6
  },
  "luminance": 0.0037
}

Semantic roles & 50–950 ramp

primary
#0C042F
secondary
#62721D
accent
#FB2DD4
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C042F

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

Preview Lab → · Contrast checker → · Palette generator →

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