#0C0132#0C0132

#0C0132 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.0% C 0.091 H 282.7°. Best body text is #FFFFFF at 19.70:1 contrast (WCAG AA passes).

Color values

HEX#0C0132
RGBrgb(12, 1, 50)
HSLhsl(253, 96%, 10%)
HSVhsv(253, 98%, 20%)
CMYKcmyk(76%, 98%, 0%, 80.4%)
CIE-LABlab(2.98, 17.38, -27.96)
CIE-LCHlch(2.98, 32.92, 301.86°)
OKLaboklab(16.04% 0.0201 -0.0891)
OKLCHoklch(16.04% 0.091 282.7)
XYZxyz(0.7380, 0.3301, 3.0418)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0132 #273201
analogous
#010F32 #0C0132 #240132
triadic
#0C0132 #320C01 #01320C
tetradic
#0C0132 #32010F #273201 #013224
square
#0C0132 #32010F #273201 #013224
split-complementary
#0C0132 #322401 #0F3201
monochromatic
#07011E #07011E #0C0132 #1A026E #2903AA

Accessibility & contrast

On white

19.70
#0C0132 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0132
19.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0132#FFFFFF#000000##FFFFFF
##0C01321.0019.701.0719.70
#FFFFFF19.701.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C33
Deuteranopia (green-blind)
#000931
Tritanopia (blue-blind)
#000F19
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0c0132;
/* rgb */ color: rgb(12, 1, 50);
/* oklch */ color: oklch(16.0% 0.091 282.7);
Tailwind
colors: {
  custom: {
    50: '#4f466a',
    500: '#0c0132',
    950: '#000000',
  },
}
SCSS
$custom: #0c0132;
$custom-light: #4f466a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0132",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 50
  },
  "hsl": {
    "h": 253.469,
    "s": 96.078,
    "l": 10
  },
  "oklch": {
    "l": 0.16043,
    "c": 0.09134,
    "h": 282.7
  },
  "luminance": 0.0033
}

Semantic roles & 50–950 ramp

primary
#0C0132
secondary
#627717
accent
#FF29CF
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C0132

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

Preview Lab → · Contrast checker → · Palette generator →

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