#0C0136#0C0136

#0C0136 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.6% C 0.096 H 280.7°. Best body text is #FFFFFF at 19.57:1 contrast (WCAG AA passes).

Color values

HEX#0C0136
RGBrgb(12, 1, 54)
HSLhsl(252, 96%, 11%)
HSVhsv(252, 98%, 21%)
CMYKcmyk(77.8%, 98.1%, 0%, 78.8%)
CIE-LABlab(3.31, 19.67, -30.40)
CIE-LCHlch(3.31, 36.21, 302.90°)
OKLaboklab(16.62% 0.018 -0.0948)
OKLCHoklch(16.62% 0.096 280.7)
XYZxyz(0.8281, 0.3661, 3.5163)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0136 #2B3601
analogous
#011036 #0C0136 #260136
triadic
#0C0136 #360C01 #01360C
tetradic
#0C0136 #360110 #2B3601 #013626
square
#0C0136 #360110 #2B3601 #013626
split-complementary
#0C0136 #362601 #103601
monochromatic
#07011E #07011E #0C0136 #190272 #2703AE

Accessibility & contrast

On white

19.57
#0C0136 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#0C0136 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0136
19.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0136#FFFFFF#000000##FFFFFF
##0C01361.0019.571.0719.57
#FFFFFF19.571.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E37
Deuteranopia (green-blind)
#000A35
Tritanopia (blue-blind)
#00111C
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c0136;
/* rgb */ color: rgb(12, 1, 54);
/* oklch */ color: oklch(16.6% 0.096 280.7);
Tailwind
colors: {
  custom: {
    50: '#50466e',
    500: '#0c0136',
    950: '#000000',
  },
}
SCSS
$custom: #0c0136;
$custom-light: #50466e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0136",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 54
  },
  "hsl": {
    "h": 252.453,
    "s": 96.364,
    "l": 10.784
  },
  "oklch": {
    "l": 0.16624,
    "c": 0.09647,
    "h": 280.7
  },
  "luminance": 0.00366
}

Semantic roles & 50–950 ramp

primary
#0C0136
secondary
#667B18
accent
#FF29D3
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0136

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

Preview Lab → · Contrast checker → · Palette generator →

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