#0C052D#0C052D

#0C052D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.4% C 0.077 H 282.9°. Best body text is #FFFFFF at 19.53:1 contrast (WCAG AA passes).

Color values

HEX#0C052D
RGBrgb(12, 5, 45)
HSLhsl(251, 80%, 10%)
HSVhsv(251, 89%, 18%)
CMYKcmyk(73.3%, 88.9%, 0%, 82.4%)
CIE-LABlab(3.40, 13.19, -23.54)
CIE-LCHlch(3.40, 26.99, 299.25°)
OKLaboklab(16.37% 0.0171 -0.0746)
OKLCHoklch(16.37% 0.077 282.9)
XYZxyz(0.6794, 0.3761, 2.5189)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C052D #262D05
analogous
#05122D #0C052D #20052D
triadic
#0C052D #2D0C05 #052D0C
tetradic
#0C052D #2D0512 #262D05 #052D20
square
#0C052D #2D0512 #262D05 #052D20
split-complementary
#0C052D #2D2005 #122D05
monochromatic
#07031C #07031C #0C052D #1B0B64 #29119B

Accessibility & contrast

On white

19.53
#0C052D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#0C052D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C052D
19.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C052D#FFFFFF#000000##FFFFFF
##0C052D1.0019.531.0819.53
#FFFFFF19.531.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2E
Deuteranopia (green-blind)
#000B2C
Tritanopia (blue-blind)
#001018
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c052d;
/* rgb */ color: rgb(12, 5, 45);
/* oklch */ color: oklch(16.4% 0.077 282.9);
Tailwind
colors: {
  custom: {
    50: '#4e4866',
    500: '#0c052d',
    950: '#000000',
  },
}
SCSS
$custom: #0c052d;
$custom-light: #4e4866;
$custom-dark: #000000;
JSON
{
  "hex": "#0c052d",
  "rgb": {
    "r": 12,
    "g": 5,
    "b": 45
  },
  "hsl": {
    "h": 250.5,
    "s": 80,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16371,
    "c": 0.07655,
    "h": 282.9
  },
  "luminance": 0.00376
}

Semantic roles & 50–950 ramp

primary
#0C052D
secondary
#616F1F
accent
#F631D4
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C052D

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

Preview Lab → · Contrast checker → · Palette generator →

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