#0C052B#0C052B

#0C052B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.1% C 0.074 H 283.9°. Best body text is #FFFFFF at 19.59:1 contrast (WCAG AA passes).

Color values

HEX#0C052B
RGBrgb(12, 5, 43)
HSLhsl(251, 79%, 9%)
HSVhsv(251, 88%, 17%)
CMYKcmyk(72.1%, 88.4%, 0%, 83.1%)
CIE-LABlab(3.26, 12.23, -22.24)
CIE-LCHlch(3.26, 25.38, 298.81°)
OKLaboklab(16.13% 0.0177 -0.0714)
OKLCHoklch(16.13% 0.074 283.9)
XYZxyz(0.6418, 0.3611, 2.3209)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C052B #242B05
analogous
#05112B #0C052B #1F052B
triadic
#0C052B #2B0C05 #052B0C
tetradic
#0C052B #2B0511 #242B05 #052B1F
square
#0C052B #2B0511 #242B05 #052B1F
split-complementary
#0C052B #2B1F05 #112B05
monochromatic
#08031B #08031B #0C052B #1B0B62 #2B1299

Accessibility & contrast

On white

19.59
#0C052B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C052B
19.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C052B#FFFFFF#000000##FFFFFF
##0C052B1.0019.591.0719.59
#FFFFFF19.591.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2C
Deuteranopia (green-blind)
#000B2A
Tritanopia (blue-blind)
#010F17
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c052b;
/* rgb */ color: rgb(12, 5, 43);
/* oklch */ color: oklch(16.1% 0.074 283.9);
Tailwind
colors: {
  custom: {
    50: '#4d4964',
    500: '#0c052b',
    950: '#000000',
  },
}
SCSS
$custom: #0c052b;
$custom-light: #4d4964;
$custom-dark: #000000;
JSON
{
  "hex": "#0c052b",
  "rgb": {
    "r": 12,
    "g": 5,
    "b": 43
  },
  "hsl": {
    "h": 251.053,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.16126,
    "c": 0.07352,
    "h": 283.9
  },
  "luminance": 0.00361
}

Semantic roles & 50–950 ramp

primary
#0C052B
secondary
#5E6D1F
accent
#F632D2
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #0C052B

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

Preview Lab → · Contrast checker → · Palette generator →

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