#0C0333#0C0333

#0C0333 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.7% C 0.089 H 281.2°. Best body text is #FFFFFF at 19.51:1 contrast (WCAG AA passes).

Color values

HEX#0C0333
RGBrgb(12, 3, 51)
HSLhsl(251, 89%, 11%)
HSVhsv(251, 94%, 20%)
CMYKcmyk(76.5%, 94.1%, 0%, 80%)
CIE-LABlab(3.45, 17.13, -27.95)
CIE-LCHlch(3.45, 32.78, 301.51°)
OKLaboklab(16.67% 0.0173 -0.0872)
OKLCHoklch(16.67% 0.089 281.2)
XYZxyz(0.7815, 0.3822, 3.1639)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0333 #2A3303
analogous
#031233 #0C0333 #240333
triadic
#0C0333 #330C03 #03330C
tetradic
#0C0333 #330312 #2A3303 #033324
square
#0C0333 #330312 #2A3303 #033324
split-complementary
#0C0333 #332403 #123303
monochromatic
#07021D #07021D #0C0333 #1A066D #270AA7

Accessibility & contrast

On white

19.51
#0C0333 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0333
19.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0333#FFFFFF#000000##FFFFFF
##0C03331.0019.511.0819.51
#FFFFFF19.511.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E34
Deuteranopia (green-blind)
#000B32
Tritanopia (blue-blind)
#00111B
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c0333;
/* rgb */ color: rgb(12, 3, 51);
/* oklch */ color: oklch(16.7% 0.089 281.2);
Tailwind
colors: {
  custom: {
    50: '#4f476b',
    500: '#0c0333',
    950: '#000000',
  },
}
SCSS
$custom: #0c0333;
$custom-light: #4f476b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0333",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 51
  },
  "hsl": {
    "h": 251.25,
    "s": 88.889,
    "l": 10.588
  },
  "oklch": {
    "l": 0.16673,
    "c": 0.08889,
    "h": 281.2
  },
  "luminance": 0.00382
}

Semantic roles & 50–950 ramp

primary
#0C0333
secondary
#65761C
accent
#FF29D7
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0333

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

Preview Lab → · Contrast checker → · Palette generator →

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