#0C0332#0C0332

#0C0332 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.5% C 0.088 H 281.7°. Best body text is #FFFFFF at 19.54:1 contrast (WCAG AA passes).

Color values

HEX#0C0332
RGBrgb(12, 3, 50)
HSLhsl(251, 89%, 10%)
HSVhsv(251, 94%, 20%)
CMYKcmyk(76%, 94%, 0%, 80.4%)
CIE-LABlab(3.37, 16.58, -27.33)
CIE-LCHlch(3.37, 31.97, 301.24°)
OKLaboklab(16.54% 0.0177 -0.0857)
OKLCHoklch(16.54% 0.088 281.7)
XYZxyz(0.7597, 0.3735, 3.0491)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0332 #293203
analogous
#031232 #0C0332 #230332
triadic
#0C0332 #320C03 #03320C
tetradic
#0C0332 #320312 #293203 #033223
square
#0C0332 #320312 #293203 #033223
split-complementary
#0C0332 #322303 #123203
monochromatic
#07021D #07021D #0C0332 #1A066C #280AA5

Accessibility & contrast

On white

19.54
#0C0332 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0332
19.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0332#FFFFFF#000000##FFFFFF
##0C03321.0019.541.0719.54
#FFFFFF19.541.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E33
Deuteranopia (green-blind)
#000A31
Tritanopia (blue-blind)
#00101A
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c0332;
/* rgb */ color: rgb(12, 3, 50);
/* oklch */ color: oklch(16.5% 0.088 281.7);
Tailwind
colors: {
  custom: {
    50: '#4f476a',
    500: '#0c0332',
    950: '#000000',
  },
}
SCSS
$custom: #0c0332;
$custom-light: #4f476a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0332",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 50
  },
  "hsl": {
    "h": 251.489,
    "s": 88.679,
    "l": 10.392
  },
  "oklch": {
    "l": 0.16537,
    "c": 0.08751,
    "h": 281.7
  },
  "luminance": 0.00374
}

Semantic roles & 50–950 ramp

primary
#0C0332
secondary
#64751B
accent
#FF29D6
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C0332

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

Preview Lab → · Contrast checker → · Palette generator →

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