#0C031F#0C031F

#0C031F is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 14.1% C 0.060 H 294.6°. Best body text is #FFFFFF at 20.03:1 contrast (WCAG AA passes).

Color values

HEX#0C031F
RGBrgb(12, 3, 31)
HSLhsl(259, 82%, 7%)
HSVhsv(259, 90%, 12%)
CMYKcmyk(61.3%, 90.3%, 0%, 87.8%)
CIE-LABlab(2.19, 8.24, -14.59)
CIE-LCHlch(2.19, 16.75, 299.47°)
OKLaboklab(14.13% 0.0251 -0.0547)
OKLCHoklch(14.13% 0.06 294.6)
XYZxyz(0.4314, 0.2422, 1.3201)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C031F #161F03
analogous
#03081F #0C031F #1A031F
triadic
#0C031F #1F0C03 #031F0C
tetradic
#0C031F #1F0308 #161F03 #031F1A
square
#0C031F #1F0308 #161F03 #031F1A
split-complementary
#0C031F #1F1A03 #081F03
monochromatic
#0B031C #0B031C #0C031F #220857 #370E8F

Accessibility & contrast

On white

20.03
#0C031F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#0C031F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C031F
20.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C031F#FFFFFF#000000##FFFFFF
##0C031F1.0020.031.0520.03
#FFFFFF20.031.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000820
Deuteranopia (green-blind)
#00081E
Tritanopia (blue-blind)
#07090F
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0c031f;
/* rgb */ color: rgb(12, 3, 31);
/* oklch */ color: oklch(14.1% 0.060 294.6);
Tailwind
colors: {
  custom: {
    50: '#4c485a',
    500: '#0c031f',
    950: '#000000',
  },
}
SCSS
$custom: #0c031f;
$custom-light: #4c485a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c031f",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 31
  },
  "hsl": {
    "h": 259.286,
    "s": 82.353,
    "l": 6.667
  },
  "oklch": {
    "l": 0.14127,
    "c": 0.06014,
    "h": 294.6
  },
  "luminance": 0.00242
}

Semantic roles & 50–950 ramp

primary
#0C031F
secondary
#4C631B
accent
#F92FB8
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #0C031F

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

Preview Lab → · Contrast checker → · Palette generator →

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