#0C032C#0C032C

#0C032C is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.7% C 0.079 H 284.8°. Best body text is #FFFFFF at 19.72:1 contrast (WCAG AA passes).

Color values

HEX#0C032C
RGBrgb(12, 3, 44)
HSLhsl(253, 87%, 9%)
HSVhsv(253, 93%, 17%)
CMYKcmyk(72.7%, 93.2%, 0%, 82.7%)
CIE-LABlab(2.94, 13.51, -23.52)
CIE-LCHlch(2.94, 27.12, 299.87°)
OKLaboklab(15.74% 0.0203 -0.0765)
OKLCHoklch(15.74% 0.079 284.8)
XYZxyz(0.6387, 0.3251, 2.4115)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C032C #232C03
analogous
#030F2C #0C032C #21032C
triadic
#0C032C #2C0C03 #032C0C
tetradic
#0C032C #2C030F #232C03 #032C21
square
#0C032C #2C030F #232C03 #032C21
split-complementary
#0C032C #2C2103 #0F2C03
monochromatic
#08021D #08021D #0C032C #1C0765 #2B0B9F

Accessibility & contrast

On white

19.72
#0C032C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C032C
19.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C032C#FFFFFF#000000##FFFFFF
##0C032C1.0019.721.0719.72
#FFFFFF19.721.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2D
Deuteranopia (green-blind)
#00092B
Tritanopia (blue-blind)
#000E17
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0c032c;
/* rgb */ color: rgb(12, 3, 44);
/* oklch */ color: oklch(15.7% 0.079 284.8);
Tailwind
colors: {
  custom: {
    50: '#4d4865',
    500: '#0c032c',
    950: '#000000',
  },
}
SCSS
$custom: #0c032c;
$custom-light: #4d4865;
$custom-dark: #000000;
JSON
{
  "hex": "#0c032c",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 44
  },
  "hsl": {
    "h": 253.171,
    "s": 87.234,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15736,
    "c": 0.07912,
    "h": 284.8
  },
  "luminance": 0.00325
}

Semantic roles & 50–950 ramp

primary
#0C032C
secondary
#5D701B
accent
#FD2ACF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0C032C

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

Preview Lab → · Contrast checker → · Palette generator →

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