#0C0128#0C0128

#0C0128 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 14.6% C 0.078 H 289.0°. Best body text is #FFFFFF at 19.99:1 contrast (WCAG AA passes).

Color values

HEX#0C0128
RGBrgb(12, 1, 40)
HSLhsl(257, 95%, 8%)
HSVhsv(257, 98%, 16%)
CMYKcmyk(70%, 97.5%, 0%, 84.3%)
CIE-LABlab(2.29, 12.49, -21.48)
CIE-LCHlch(2.29, 24.85, 300.18°)
OKLaboklab(14.63% 0.0255 -0.0741)
OKLCHoklch(14.63% 0.078 289)
XYZxyz(0.5454, 0.2530, 2.0272)
Luminance0.0025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0128 #1D2801
analogous
#010928 #0C0128 #1F0128
triadic
#0C0128 #280C01 #01280C
tetradic
#0C0128 #280109 #1D2801 #01281F
square
#0C0128 #280109 #1D2801 #01281F
split-complementary
#0C0128 #281F01 #092801
monochromatic
#09011E #09011E #0C0128 #1E0264 #30049F

Accessibility & contrast

On white

19.99
#0C0128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#0C0128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0128
19.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0128#FFFFFF#000000##FFFFFF
##0C01281.0019.991.0519.99
#FFFFFF19.991.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000929
Deuteranopia (green-blind)
#000727
Tritanopia (blue-blind)
#030A13
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0c0128;
/* rgb */ color: rgb(12, 1, 40);
/* oklch */ color: oklch(14.6% 0.078 289.0);
Tailwind
colors: {
  custom: {
    50: '#4c4762',
    500: '#0c0128',
    950: '#000000',
  },
}
SCSS
$custom: #0c0128;
$custom-light: #4c4762;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0128",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 256.923,
    "s": 95.122,
    "l": 8.039
  },
  "oklch": {
    "l": 0.14631,
    "c": 0.07839,
    "h": 289
  },
  "luminance": 0.00253
}

Semantic roles & 50–950 ramp

primary
#0C0128
secondary
#566F16
accent
#FF29C3
background
#F4F3F5
surface
#E7E5EA
border
#C3C1C6
text
#010005
muted
#777779

Preview Lab

Preview with #0C0128

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

Preview Lab → · Contrast checker → · Palette generator →

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