#0C052C#0C052C

#0C052C is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.2% C 0.075 H 283.4°. Best body text is #FFFFFF at 19.56:1 contrast (WCAG AA passes).

Color values

HEX#0C052C
RGBrgb(12, 5, 44)
HSLhsl(251, 80%, 10%)
HSVhsv(251, 89%, 17%)
CMYKcmyk(72.7%, 88.6%, 0%, 82.7%)
CIE-LABlab(3.33, 12.71, -22.90)
CIE-LCHlch(3.33, 26.19, 299.03°)
OKLaboklab(16.25% 0.0174 -0.073)
OKLCHoklch(16.25% 0.075 283.4)
XYZxyz(0.6604, 0.3685, 2.4187)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C052C #252C05
analogous
#05122C #0C052C #20052C
triadic
#0C052C #2C0C05 #052C0C
tetradic
#0C052C #2C0512 #252C05 #052C20
square
#0C052C #2C0512 #252C05 #052C20
split-complementary
#0C052C #2C2005 #122C05
monochromatic
#07031B #07031B #0C052C #1B0B63 #2A119A

Accessibility & contrast

On white

19.56
#0C052C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C052C
19.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C052C#FFFFFF#000000##FFFFFF
##0C052C1.0019.561.0719.56
#FFFFFF19.561.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2D
Deuteranopia (green-blind)
#000B2B
Tritanopia (blue-blind)
#000F17
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c052c;
/* rgb */ color: rgb(12, 5, 44);
/* oklch */ color: oklch(16.2% 0.075 283.4);
Tailwind
colors: {
  custom: {
    50: '#4d4865',
    500: '#0c052c',
    950: '#000000',
  },
}
SCSS
$custom: #0c052c;
$custom-light: #4d4865;
$custom-dark: #000000;
JSON
{
  "hex": "#0c052c",
  "rgb": {
    "r": 12,
    "g": 5,
    "b": 44
  },
  "hsl": {
    "h": 250.769,
    "s": 79.592,
    "l": 9.608
  },
  "oklch": {
    "l": 0.16248,
    "c": 0.07503,
    "h": 283.4
  },
  "luminance": 0.00369
}

Semantic roles & 50–950 ramp

primary
#0C052C
secondary
#606E1F
accent
#F632D3
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0C052C

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

Preview Lab → · Contrast checker → · Palette generator →

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