#0C0334#0C0334

#0C0334 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.8% C 0.090 H 280.8°. Best body text is #FFFFFF at 19.48:1 contrast (WCAG AA passes).

Color values

HEX#0C0334
RGBrgb(12, 3, 52)
HSLhsl(251, 89%, 11%)
HSVhsv(251, 94%, 20%)
CMYKcmyk(76.9%, 94.2%, 0%, 79.6%)
CIE-LABlab(3.53, 17.70, -28.56)
CIE-LCHlch(3.53, 33.60, 301.78°)
OKLaboklab(16.81% 0.0169 -0.0887)
OKLCHoklch(16.81% 0.09 280.8)
XYZxyz(0.8038, 0.3912, 3.2813)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0334 #2B3403
analogous
#031234 #0C0334 #240334
triadic
#0C0334 #340C03 #03340C
tetradic
#0C0334 #340312 #2B3403 #033424
square
#0C0334 #340312 #2B3403 #033424
split-complementary
#0C0334 #342403 #123403
monochromatic
#07021D #07021D #0C0334 #19066E #270AA8

Accessibility & contrast

On white

19.48
#0C0334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#0C0334 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0334
19.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0334#FFFFFF#000000##FFFFFF
##0C03341.0019.481.0819.48
#FFFFFF19.481.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E35
Deuteranopia (green-blind)
#000B33
Tritanopia (blue-blind)
#00111B
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c0334;
/* rgb */ color: rgb(12, 3, 52);
/* oklch */ color: oklch(16.8% 0.090 280.8);
Tailwind
colors: {
  custom: {
    50: '#50476c',
    500: '#0c0334',
    950: '#000000',
  },
}
SCSS
$custom: #0c0334;
$custom-light: #50476c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0334",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 251.02,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.1681,
    "c": 0.09026,
    "h": 280.8
  },
  "luminance": 0.00391
}

Semantic roles & 50–950 ramp

primary
#0C0334
secondary
#66771C
accent
#FF29D8
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0334

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

Preview Lab → · Contrast checker → · Palette generator →

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