#0C022F#0C022F

#0C022F is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.9% C 0.085 H 283.8°. Best body text is #FFFFFF at 19.71:1 contrast (WCAG AA passes).

Color values

HEX#0C022F
RGBrgb(12, 2, 47)
HSLhsl(253, 92%, 10%)
HSVhsv(253, 96%, 18%)
CMYKcmyk(74.5%, 95.7%, 0%, 81.6%)
CIE-LABlab(2.95, 15.39, -25.76)
CIE-LCHlch(2.95, 30.01, 300.86°)
OKLaboklab(15.88% 0.0203 -0.0829)
OKLCHoklch(15.88% 0.085 283.8)
XYZxyz(0.6863, 0.3268, 2.7157)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C022F #252F02
analogous
#020F2F #0C022F #23022F
triadic
#0C022F #2F0C02 #022F0C
tetradic
#0C022F #2F020F #252F02 #022F23
square
#0C022F #2F020F #252F02 #022F23
split-complementary
#0C022F #2F2302 #0F2F02
monochromatic
#07011D #07011D #0C022F #1B046A #2A07A4

Accessibility & contrast

On white

19.71
#0C022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C022F
19.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C022F#FFFFFF#000000##FFFFFF
##0C022F1.0019.711.0719.71
#FFFFFF19.711.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C30
Deuteranopia (green-blind)
#00092E
Tritanopia (blue-blind)
#000E18
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0c022f;
/* rgb */ color: rgb(12, 2, 47);
/* oklch */ color: oklch(15.9% 0.085 283.8);
Tailwind
colors: {
  custom: {
    50: '#4e4768',
    500: '#0c022f',
    950: '#000000',
  },
}
SCSS
$custom: #0c022f;
$custom-light: #4e4768;
$custom-dark: #000000;
JSON
{
  "hex": "#0c022f",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 253.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.15877,
    "c": 0.08535,
    "h": 283.8
  },
  "luminance": 0.00327
}

Semantic roles & 50–950 ramp

primary
#0C022F
secondary
#607419
accent
#FF29CF
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C022F

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

Preview Lab → · Contrast checker → · Palette generator →

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