#0C0134#0C0134

#0C0134 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.3% C 0.094 H 281.7°. Best body text is #FFFFFF at 19.63:1 contrast (WCAG AA passes).

Color values

HEX#0C0134
RGBrgb(12, 1, 52)
HSLhsl(253, 96%, 10%)
HSVhsv(253, 98%, 20%)
CMYKcmyk(76.9%, 98.1%, 0%, 79.6%)
CIE-LABlab(3.14, 18.50, -29.19)
CIE-LCHlch(3.14, 34.56, 302.36°)
OKLaboklab(16.33% 0.019 -0.092)
OKLCHoklch(16.33% 0.094 281.7)
XYZxyz(0.7821, 0.3477, 3.2741)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0134 #293401
analogous
#010F34 #0C0134 #250134
triadic
#0C0134 #340C01 #01340C
tetradic
#0C0134 #34010F #293401 #013425
square
#0C0134 #34010F #293401 #013425
split-complementary
#0C0134 #342501 #0F3401
monochromatic
#07011E #07011E #0C0134 #1A0270 #2803AC

Accessibility & contrast

On white

19.63
#0C0134 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0134
19.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0134#FFFFFF#000000##FFFFFF
##0C01341.0019.631.0719.63
#FFFFFF19.631.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D35
Deuteranopia (green-blind)
#000933
Tritanopia (blue-blind)
#00101B
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0c0134;
/* rgb */ color: rgb(12, 1, 52);
/* oklch */ color: oklch(16.3% 0.094 281.7);
Tailwind
colors: {
  custom: {
    50: '#50466c',
    500: '#0c0134',
    950: '#000000',
  },
}
SCSS
$custom: #0c0134;
$custom-light: #50466c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0134",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 52
  },
  "hsl": {
    "h": 252.941,
    "s": 96.226,
    "l": 10.392
  },
  "oklch": {
    "l": 0.16333,
    "c": 0.09391,
    "h": 281.7
  },
  "luminance": 0.00348
}

Semantic roles & 50–950 ramp

primary
#0C0134
secondary
#647918
accent
#FF29D1
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0134

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

Preview Lab → · Contrast checker → · Palette generator →

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