#0C022C#0C022C

#0C022C is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.5% C 0.081 H 285.5°. Best body text is #FFFFFF at 19.80:1 contrast (WCAG AA passes).

Color values

HEX#0C022C
RGBrgb(12, 2, 44)
HSLhsl(254, 91%, 9%)
HSVhsv(254, 95%, 17%)
CMYKcmyk(72.7%, 95.5%, 0%, 82.7%)
CIE-LABlab(2.74, 13.90, -23.83)
CIE-LCHlch(2.74, 27.59, 300.27°)
OKLaboklab(15.47% 0.0218 -0.0783)
OKLCHoklch(15.47% 0.081 285.5)
XYZxyz(0.6278, 0.3034, 2.4079)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C022C #222C02
analogous
#020D2C #0C022C #21022C
triadic
#0C022C #2C0C02 #022C0C
tetradic
#0C022C #2C020D #222C02 #022C21
square
#0C022C #2C020D #222C02 #022C21
split-complementary
#0C022C #2C2102 #0D2C02
monochromatic
#08011D #08011D #0C022C #1C0567 #2C07A1

Accessibility & contrast

On white

19.80
#0C022C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C022C
19.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C022C#FFFFFF#000000##FFFFFF
##0C022C1.0019.801.0619.80
#FFFFFF19.801.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2D
Deuteranopia (green-blind)
#00092B
Tritanopia (blue-blind)
#000D16
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0c022c;
/* rgb */ color: rgb(12, 2, 44);
/* oklch */ color: oklch(15.5% 0.081 285.5);
Tailwind
colors: {
  custom: {
    50: '#4d4765',
    500: '#0c022c',
    950: '#000000',
  },
}
SCSS
$custom: #0c022c;
$custom-light: #4d4765;
$custom-dark: #000000;
JSON
{
  "hex": "#0c022c",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 254.286,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.15466,
    "c": 0.0813,
    "h": 285.5
  },
  "luminance": 0.00303
}

Semantic roles & 50–950 ramp

primary
#0C022C
secondary
#5C7119
accent
#FF29CC
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0C022C

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

Preview Lab → · Contrast checker → · Palette generator →

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