#0C022D#0C022D

#0C022D is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.6% C 0.083 H 284.9°. Best body text is #FFFFFF at 19.77:1 contrast (WCAG AA passes).

Color values

HEX#0C022D
RGBrgb(12, 2, 45)
HSLhsl(254, 91%, 9%)
HSVhsv(254, 96%, 18%)
CMYKcmyk(73.3%, 95.6%, 0%, 82.4%)
CIE-LABlab(2.81, 14.39, -24.48)
CIE-LCHlch(2.81, 28.39, 300.45°)
OKLaboklab(15.6% 0.0213 -0.0799)
OKLCHoklch(15.6% 0.083 284.9)
XYZxyz(0.6468, 0.3110, 2.5081)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C022D #232D02
analogous
#020E2D #0C022D #22022D
triadic
#0C022D #2D0C02 #022D0C
tetradic
#0C022D #2D020E #232D02 #022D22
square
#0C022D #2D020E #232D02 #022D22
split-complementary
#0C022D #2D2202 #0E2D02
monochromatic
#08011D #08011D #0C022D #1C0568 #2B07A2

Accessibility & contrast

On white

19.77
#0C022D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#0C022D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C022D
19.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C022D#FFFFFF#000000##FFFFFF
##0C022D1.0019.771.0619.77
#FFFFFF19.771.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2E
Deuteranopia (green-blind)
#00092C
Tritanopia (blue-blind)
#000D17
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0c022d;
/* rgb */ color: rgb(12, 2, 45);
/* oklch */ color: oklch(15.6% 0.083 284.9);
Tailwind
colors: {
  custom: {
    50: '#4d4766',
    500: '#0c022d',
    950: '#000000',
  },
}
SCSS
$custom: #0c022d;
$custom-light: #4d4766;
$custom-dark: #000000;
JSON
{
  "hex": "#0c022d",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 45
  },
  "hsl": {
    "h": 253.953,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15603,
    "c": 0.08265,
    "h": 284.9
  },
  "luminance": 0.00311
}

Semantic roles & 50–950 ramp

primary
#0C022D
secondary
#5D7219
accent
#FF29CD
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C022D

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

Preview Lab → · Contrast checker → · Palette generator →

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