#0C0122#0C0122

#0C0122 is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 13.8% C 0.071 H 294.1°. Best body text is #FFFFFF at 20.13:1 contrast (WCAG AA passes).

Color values

HEX#0C0122
RGBrgb(12, 1, 34)
HSLhsl(260, 94%, 7%)
HSVhsv(260, 97%, 13%)
CMYKcmyk(64.7%, 97.1%, 0%, 86.7%)
CIE-LABlab(1.94, 10.10, -17.33)
CIE-LCHlch(1.94, 20.06, 300.22°)
OKLaboklab(13.82% 0.0288 -0.0644)
OKLCHoklch(13.82% 0.071 294.1)
XYZxyz(0.4511, 0.2153, 1.5309)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0122 #172201
analogous
#010722 #0C0122 #1D0122
triadic
#0C0122 #220C01 #01220C
tetradic
#0C0122 #220107 #172201 #01221D
square
#0C0122 #220107 #172201 #01221D
split-complementary
#0C0122 #221D01 #072201
monochromatic
#0A011E #0A011E #0C0122 #21035D #360499

Accessibility & contrast

On white

20.13
#0C0122 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#0C0122 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0122
20.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0122#FFFFFF#000000##FFFFFF
##0C01221.0020.131.0420.13
#FFFFFF20.131.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000723
Deuteranopia (green-blind)
#000721
Tritanopia (blue-blind)
#060810
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0c0122;
/* rgb */ color: rgb(12, 1, 34);
/* oklch */ color: oklch(13.8% 0.071 294.1);
Tailwind
colors: {
  custom: {
    50: '#4c475d',
    500: '#0c0122',
    950: '#000000',
  },
}
SCSS
$custom: #0c0122;
$custom-light: #4c475d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0122",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 34
  },
  "hsl": {
    "h": 260,
    "s": 94.286,
    "l": 6.863
  },
  "oklch": {
    "l": 0.13824,
    "c": 0.07059,
    "h": 294.1
  },
  "luminance": 0.00215
}

Semantic roles & 50–950 ramp

primary
#0C0122
secondary
#4D6916
accent
#FF29B8
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#010004
muted
#777779

Preview Lab

Preview with #0C0122

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

Preview Lab → · Contrast checker → · Palette generator →

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