#0C032D#0C032D

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

Color values

HEX#0C032D
RGBrgb(12, 3, 45)
HSLhsl(253, 88%, 9%)
HSVhsv(253, 93%, 18%)
CMYKcmyk(73.3%, 93.3%, 0%, 82.4%)
CIE-LABlab(3.01, 13.99, -24.17)
CIE-LCHlch(3.01, 27.92, 300.06°)
OKLaboklab(15.87% 0.0198 -0.078)
OKLCHoklch(15.87% 0.081 284.3)
XYZxyz(0.6577, 0.3327, 2.5117)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C032D #242D03
analogous
#030F2D #0C032D #21032D
triadic
#0C032D #2D0C03 #032D0C
tetradic
#0C032D #2D030F #242D03 #032D21
square
#0C032D #2D030F #242D03 #032D21
split-complementary
#0C032D #2D2103 #0F2D03
monochromatic
#08021D #08021D #0C032D #1B0766 #2B0BA0

Accessibility & contrast

On white

19.69
#0C032D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C032D
19.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C032D#FFFFFF#000000##FFFFFF
##0C032D1.0019.691.0719.69
#FFFFFF19.691.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2E
Deuteranopia (green-blind)
#000A2C
Tritanopia (blue-blind)
#000E17
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0c032d;
/* rgb */ color: rgb(12, 3, 45);
/* oklch */ color: oklch(15.9% 0.081 284.3);
Tailwind
colors: {
  custom: {
    50: '#4d4866',
    500: '#0c032d',
    950: '#000000',
  },
}
SCSS
$custom: #0c032d;
$custom-light: #4d4866;
$custom-dark: #000000;
JSON
{
  "hex": "#0c032d",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 45
  },
  "hsl": {
    "h": 252.857,
    "s": 87.5,
    "l": 9.412
  },
  "oklch": {
    "l": 0.15867,
    "c": 0.08053,
    "h": 284.3
  },
  "luminance": 0.00333
}

Semantic roles & 50–950 ramp

primary
#0C032D
secondary
#5E711B
accent
#FE2AD0
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C032D

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

Preview Lab → · Contrast checker → · Palette generator →

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