#0C021E

A color in the Violet family

#0c021e is a color in the Violet family: RGB(12, 2, 30), HSL(261°, 88%, 6%), CMYK(60%, 93%, 0%, 88%). Closest named color: black. Contrast is 20.13:1 on white and 1.04:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#0c021e
RGBrgb(12 2 30)
RGB (legacy)rgb(12, 2, 30)
RGB %rgb(5% 1% 12%)
HSLhsl(261 88% 6%)
HSV / HSBhsv(261, 93%, 12%)
HWBhwb(261 1% 88%)
CMYKcmyk(60%, 93%, 0%, 88%)
CIELAB (D50)lab(1.84 6.97 -14.21)
LCHlch(1.84 15.83 296.14)
OKLaboklab(0.1367 0.028 -0.0552)
OKLCHoklch(0.1367 0.0619 296.89)
Decimal786974

Properties

Color ToneViolet
Closest named colorblack ΔE 15
Closest web-safe color#000033
Hue261°
Saturation (HSL / HSV)88% / 93%
Lightness (HSL)6%
Brightness or Value (HSV)12%
Luminance (Rec.601 / Rec.709)3% / 2%
Relative luminance (WCAG)0.0022
Red / Green / Blue12 / 2 / 30

WCAG 2.2 Contrast Ratio

On White (#ffffff)
20.13:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.04:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 105.8 / 0 · As background with white / black text: Lc -107.7 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #0c021e;
  --color-brand-oklch: oklch(13.67% 0.0619 296.89);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(12 2 30 / 50%); }
/* Tailwind CSS */
<div class="bg-[#0c021e] text-[#0c021e] border-[#0c021e]">