#0C031B#0C031B

#0C031B is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.7% C 0.054 H 298.9°. Best body text is #FFFFFF at 20.11:1 contrast (WCAG AA passes).

Color values

HEX#0C031B
RGBrgb(12, 3, 27)
HSLhsl(263, 80%, 6%)
HSVhsv(263, 89%, 11%)
CMYKcmyk(55.6%, 88.9%, 0%, 89.4%)
CIE-LABlab(2.01, 6.99, -11.65)
CIE-LCHlch(2.01, 13.58, 300.96°)
OKLaboklab(13.68% 0.0261 -0.0473)
OKLCHoklch(13.68% 0.054 298.9)
XYZxyz(0.3820, 0.2224, 1.0595)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C031B #121B03
analogous
#03061B #0C031B #18031B
triadic
#0C031B #1B0C03 #031B0C
tetradic
#0C031B #1B0306 #121B03 #031B18
square
#0C031B #1B0306 #121B03 #031B18
split-complementary
#0C031B #1B1803 #061B03
monochromatic
#0C031C #0C031C #0C031C #240952 #3D0F89

Accessibility & contrast

On white

20.11
#0C031B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#0C031B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C031B
20.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C031B#FFFFFF#000000##FFFFFF
##0C031B1.0020.111.0420.11
#FFFFFF20.111.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071C
Deuteranopia (green-blind)
#00071A
Tritanopia (blue-blind)
#09070D
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0c031b;
/* rgb */ color: rgb(12, 3, 27);
/* oklch */ color: oklch(13.7% 0.054 298.9);
Tailwind
colors: {
  custom: {
    50: '#4c4857',
    500: '#0c031b',
    950: '#000000',
  },
}
SCSS
$custom: #0c031b;
$custom-light: #4c4857;
$custom-dark: #000000;
JSON
{
  "hex": "#0c031b",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 27
  },
  "hsl": {
    "h": 262.5,
    "s": 80,
    "l": 5.882
  },
  "oklch": {
    "l": 0.13681,
    "c": 0.05405,
    "h": 298.9
  },
  "luminance": 0.00222
}

Semantic roles & 50–950 ramp

primary
#0C031B
secondary
#455F1B
accent
#F631AD
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0C031B

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

Preview Lab → · Contrast checker → · Palette generator →

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