#0C052A#0C052A

#0C052A is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.0% C 0.072 H 284.5°. Best body text is #FFFFFF at 19.61:1 contrast (WCAG AA passes).

Color values

HEX#0C052A
RGBrgb(12, 5, 42)
HSLhsl(251, 79%, 9%)
HSVhsv(251, 88%, 16%)
CMYKcmyk(71.4%, 88.1%, 0%, 83.5%)
CIE-LABlab(3.20, 11.77, -21.59)
CIE-LCHlch(3.20, 24.59, 298.61°)
OKLaboklab(16% 0.018 -0.0697)
OKLCHoklch(16% 0.072 284.5)
XYZxyz(0.6237, 0.3538, 2.2255)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C052A #232A05
analogous
#05112A #0C052A #1F052A
triadic
#0C052A #2A0C05 #052A0C
tetradic
#0C052A #2A0511 #232A05 #052A1F
square
#0C052A #2A0511 #232A05 #052A1F
split-complementary
#0C052A #2A1F05 #112A05
monochromatic
#08031B #08031B #0C052A #1C0C61 #2B1297

Accessibility & contrast

On white

19.61
#0C052A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C052A
19.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C052A#FFFFFF#000000##FFFFFF
##0C052A1.0019.611.0719.61
#FFFFFF19.611.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2B
Deuteranopia (green-blind)
#000A29
Tritanopia (blue-blind)
#010E16
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c052a;
/* rgb */ color: rgb(12, 5, 42);
/* oklch */ color: oklch(16.0% 0.072 284.5);
Tailwind
colors: {
  custom: {
    50: '#4d4964',
    500: '#0c052a',
    950: '#000000',
  },
}
SCSS
$custom: #0c052a;
$custom-light: #4d4964;
$custom-dark: #000000;
JSON
{
  "hex": "#0c052a",
  "rgb": {
    "r": 12,
    "g": 5,
    "b": 42
  },
  "hsl": {
    "h": 251.351,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.16004,
    "c": 0.07199,
    "h": 284.5
  },
  "luminance": 0.00354
}

Semantic roles & 50–950 ramp

primary
#0C052A
secondary
#5D6C1F
accent
#F533D0
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#010005
muted
#777779

Preview Lab

Preview with #0C052A

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

Preview Lab → · Contrast checker → · Palette generator →

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