#0C0131#0C0131

#0C0131 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.9% C 0.090 H 283.2°. Best body text is #FFFFFF at 19.73:1 contrast (WCAG AA passes).

Color values

HEX#0C0131
RGBrgb(12, 1, 49)
HSLhsl(254, 96%, 10%)
HSVhsv(254, 98%, 19%)
CMYKcmyk(75.5%, 98%, 0%, 80.8%)
CIE-LABlab(2.90, 16.84, -27.33)
CIE-LCHlch(2.90, 32.10, 301.63°)
OKLaboklab(15.9% 0.0206 -0.0876)
OKLCHoklch(15.9% 0.09 283.2)
XYZxyz(0.7167, 0.3216, 2.9294)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0131 #263101
analogous
#010E31 #0C0131 #240131
triadic
#0C0131 #310C01 #01310C
tetradic
#0C0131 #31010E #263101 #013124
square
#0C0131 #31010E #263101 #013124
split-complementary
#0C0131 #312401 #0E3101
monochromatic
#07011E #07011E #0C0131 #1B026D #2903A9

Accessibility & contrast

On white

19.73
#0C0131 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#0C0131 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0131
19.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0131#FFFFFF#000000##FFFFFF
##0C01311.0019.731.0619.73
#FFFFFF19.731.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C32
Deuteranopia (green-blind)
#000930
Tritanopia (blue-blind)
#000E19
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0c0131;
/* rgb */ color: rgb(12, 1, 49);
/* oklch */ color: oklch(15.9% 0.090 283.2);
Tailwind
colors: {
  custom: {
    50: '#4e4669',
    500: '#0c0131',
    950: '#000000',
  },
}
SCSS
$custom: #0c0131;
$custom-light: #4e4669;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0131",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 49
  },
  "hsl": {
    "h": 253.75,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.15899,
    "c": 0.09004,
    "h": 283.2
  },
  "luminance": 0.00322
}

Semantic roles & 50–950 ramp

primary
#0C0131
secondary
#617717
accent
#FF29CE
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C0131

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

Preview Lab → · Contrast checker → · Palette generator →

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