#0C052E#0C052E

#0C052E is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.5% C 0.078 H 282.4°. Best body text is #FFFFFF at 19.50:1 contrast (WCAG AA passes).

Color values

HEX#0C052E
RGBrgb(12, 5, 46)
HSLhsl(250, 80%, 10%)
HSVhsv(250, 89%, 18%)
CMYKcmyk(73.9%, 89.1%, 0%, 82%)
CIE-LABlab(3.47, 13.68, -24.19)
CIE-LCHlch(3.47, 27.79, 299.50°)
OKLaboklab(16.5% 0.0168 -0.0762)
OKLCHoklch(16.5% 0.078 282.4)
XYZxyz(0.6989, 0.3839, 2.6215)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C052E #272E05
analogous
#05122E #0C052E #21052E
triadic
#0C052E #2E0C05 #052E0C
tetradic
#0C052E #2E0512 #272E05 #052E21
square
#0C052E #2E0512 #272E05 #052E21
split-complementary
#0C052E #2E2105 #122E05
monochromatic
#07031C #07031C #0C052E #1A0B65 #29119C

Accessibility & contrast

On white

19.50
#0C052E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C052E
19.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C052E#FFFFFF#000000##FFFFFF
##0C052E1.0019.501.0819.50
#FFFFFF19.501.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c052e;
/* rgb */ color: rgb(12, 5, 46);
/* oklch */ color: oklch(16.5% 0.078 282.4);
Tailwind
colors: {
  custom: {
    50: '#4e4867',
    500: '#0c052e',
    950: '#000000',
  },
}
SCSS
$custom: #0c052e;
$custom-light: #4e4867;
$custom-dark: #000000;
JSON
{
  "hex": "#0c052e",
  "rgb": {
    "r": 12,
    "g": 5,
    "b": 46
  },
  "hsl": {
    "h": 250.244,
    "s": 80.392,
    "l": 10
  },
  "oklch": {
    "l": 0.16496,
    "c": 0.07804,
    "h": 282.4
  },
  "luminance": 0.00384
}

Semantic roles & 50–950 ramp

primary
#0C052E
secondary
#62701F
accent
#F731D5
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C052E

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

Preview Lab → · Contrast checker → · Palette generator →

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