#0C0135#0C0135

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

Color values

HEX#0C0135
RGBrgb(12, 1, 53)
HSLhsl(253, 96%, 11%)
HSVhsv(253, 98%, 21%)
CMYKcmyk(77.4%, 98.1%, 0%, 79.2%)
CIE-LABlab(3.22, 19.08, -29.80)
CIE-LCHlch(3.22, 35.38, 302.63°)
OKLaboklab(16.48% 0.0185 -0.0934)
OKLCHoklch(16.48% 0.095 281.2)
XYZxyz(0.8049, 0.3568, 3.3939)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0135 #2A3501
analogous
#011035 #0C0135 #260135
triadic
#0C0135 #350C01 #01350C
tetradic
#0C0135 #350110 #2A3501 #013526
square
#0C0135 #350110 #2A3501 #013526
split-complementary
#0C0135 #352601 #103501
monochromatic
#07011E #07011E #0C0135 #1A0271 #2703AD

Accessibility & contrast

On white

19.60
#0C0135 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0135
19.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0135#FFFFFF#000000##FFFFFF
##0C01351.0019.601.0719.60
#FFFFFF19.601.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D36
Deuteranopia (green-blind)
#000A34
Tritanopia (blue-blind)
#00101B
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c0135;
/* rgb */ color: rgb(12, 1, 53);
/* oklch */ color: oklch(16.5% 0.095 281.2);
Tailwind
colors: {
  custom: {
    50: '#50466d',
    500: '#0c0135',
    950: '#000000',
  },
}
SCSS
$custom: #0c0135;
$custom-light: #50466d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0135",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 53
  },
  "hsl": {
    "h": 252.692,
    "s": 96.296,
    "l": 10.588
  },
  "oklch": {
    "l": 0.16479,
    "c": 0.09519,
    "h": 281.2
  },
  "luminance": 0.00357
}

Semantic roles & 50–950 ramp

primary
#0C0135
secondary
#657A18
accent
#FF29D2
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0135

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

Preview Lab → · Contrast checker → · Palette generator →

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