#0C032F#0C032F

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

Color values

HEX#0C032F
RGBrgb(12, 3, 47)
HSLhsl(252, 88%, 10%)
HSVhsv(252, 94%, 18%)
CMYKcmyk(74.5%, 93.6%, 0%, 81.6%)
CIE-LABlab(3.15, 14.99, -25.45)
CIE-LCHlch(3.15, 29.53, 300.50°)
OKLaboklab(16.13% 0.019 -0.0811)
OKLCHoklch(16.13% 0.083 283.2)
XYZxyz(0.6971, 0.3485, 2.7193)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C032F #262F03
analogous
#03102F #0C032F #22032F
triadic
#0C032F #2F0C03 #032F0C
tetradic
#0C032F #2F0310 #262F03 #032F22
square
#0C032F #2F0310 #262F03 #032F22
split-complementary
#0C032F #2F2203 #102F03
monochromatic
#07021D #07021D #0C032F #1B0769 #290AA2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C032F#FFFFFF#000000##FFFFFF
##0C032F1.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)
#000D30
Deuteranopia (green-blind)
#000A2E
Tritanopia (blue-blind)
#000F18
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0c032f;
/* rgb */ color: rgb(12, 3, 47);
/* oklch */ color: oklch(16.1% 0.083 283.2);
Tailwind
colors: {
  custom: {
    50: '#4e4768',
    500: '#0c032f',
    950: '#000000',
  },
}
SCSS
$custom: #0c032f;
$custom-light: #4e4768;
$custom-dark: #000000;
JSON
{
  "hex": "#0c032f",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 47
  },
  "hsl": {
    "h": 252.273,
    "s": 88,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16133,
    "c": 0.08334,
    "h": 283.2
  },
  "luminance": 0.00349
}

Semantic roles & 50–950 ramp

primary
#0C032F
secondary
#61731B
accent
#FE2AD3
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C032F

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

Preview Lab → · Contrast checker → · Palette generator →

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