#0C0328#0C0328

#0C0328 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.2% C 0.073 H 287.3°. Best body text is #FFFFFF at 19.83:1 contrast (WCAG AA passes).

Color values

HEX#0C0328
RGBrgb(12, 3, 40)
HSLhsl(255, 86%, 8%)
HSVhsv(255, 93%, 16%)
CMYKcmyk(70%, 92.5%, 0%, 84.3%)
CIE-LABlab(2.68, 11.69, -20.87)
CIE-LCHlch(2.68, 23.92, 299.25°)
OKLaboklab(15.22% 0.0219 -0.0701)
OKLCHoklch(15.22% 0.073 287.3)
XYZxyz(0.5671, 0.2965, 2.0344)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0328 #1F2803
analogous
#030C28 #0C0328 #1E0328
triadic
#0C0328 #280C03 #03280C
tetradic
#0C0328 #28030C #1F2803 #03281E
square
#0C0328 #28030C #1F2803 #03281E
split-complementary
#0C0328 #281E03 #0C2803
monochromatic
#09021C #09021C #0C0328 #1D0761 #2E0C9A

Accessibility & contrast

On white

19.83
#0C0328 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#0C0328 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0328
19.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0328#FFFFFF#000000##FFFFFF
##0C03281.0019.831.0619.83
#FFFFFF19.831.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B29
Deuteranopia (green-blind)
#000927
Tritanopia (blue-blind)
#020C14
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0c0328;
/* rgb */ color: rgb(12, 3, 40);
/* oklch */ color: oklch(15.2% 0.073 287.3);
Tailwind
colors: {
  custom: {
    50: '#4c4862',
    500: '#0c0328',
    950: '#000000',
  },
}
SCSS
$custom: #0c0328;
$custom-light: #4c4862;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0328",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 40
  },
  "hsl": {
    "h": 254.595,
    "s": 86.047,
    "l": 8.431
  },
  "oklch": {
    "l": 0.15219,
    "c": 0.07339,
    "h": 287.3
  },
  "luminance": 0.00296
}

Semantic roles & 50–950 ramp

primary
#0C0328
secondary
#586C1B
accent
#FC2CC9
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#010005
muted
#777779

Preview Lab

Preview with #0C0328

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

Preview Lab → · Contrast checker → · Palette generator →

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