#0C0336#0C0336

#0C0336 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.1% C 0.093 H 279.9°. Best body text is #FFFFFF at 19.41:1 contrast (WCAG AA passes).

Color values

HEX#0C0336
RGBrgb(12, 3, 54)
HSLhsl(251, 89%, 11%)
HSVhsv(251, 94%, 21%)
CMYKcmyk(77.8%, 94.4%, 0%, 78.8%)
CIE-LABlab(3.70, 18.86, -29.77)
CIE-LCHlch(3.70, 35.24, 302.36°)
OKLaboklab(17.09% 0.016 -0.0916)
OKLCHoklch(17.09% 0.093 279.9)
XYZxyz(0.8498, 0.4096, 3.5236)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0336 #2D3603
analogous
#031336 #0C0336 #250336
triadic
#0C0336 #360C03 #03360C
tetradic
#0C0336 #360313 #2D3603 #033625
square
#0C0336 #360313 #2D3603 #033625
split-complementary
#0C0336 #362503 #133603
monochromatic
#06021D #06021D #0C0336 #190670 #2609AA

Accessibility & contrast

On white

19.41
#0C0336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0336
19.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0336#FFFFFF#000000##FFFFFF
##0C03361.0019.411.0819.41
#FFFFFF19.411.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F37
Deuteranopia (green-blind)
#000B35
Tritanopia (blue-blind)
#00121C
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c0336;
/* rgb */ color: rgb(12, 3, 54);
/* oklch */ color: oklch(17.1% 0.093 279.9);
Tailwind
colors: {
  custom: {
    50: '#51476d',
    500: '#0c0336',
    950: '#000000',
  },
}
SCSS
$custom: #0c0336;
$custom-light: #51476d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0336",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 250.588,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.17085,
    "c": 0.093,
    "h": 279.9
  },
  "luminance": 0.0041
}

Semantic roles & 50–950 ramp

primary
#0C0336
secondary
#69791C
accent
#FF29D9
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0336

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

Preview Lab → · Contrast checker → · Palette generator →

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