#0C002B#0C002B

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

Color values

HEX#0C002B
RGBrgb(12, 0, 43)
HSLhsl(257, 100%, 8%)
HSVhsv(257, 100%, 17%)
CMYKcmyk(72.1%, 100%, 0%, 83.1%)
CIE-LABlab(2.28, 14.24, -23.79)
CIE-LCHlch(2.28, 27.72, 300.89°)
OKLaboklab(14.75% 0.0256 -0.0808)
OKLCHoklch(14.75% 0.085 287.6)
XYZxyz(0.5875, 0.2525, 2.3028)
Luminance0.0025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C002B #1F2B00
analogous
#00092B #0C002B #21002B
triadic
#0C002B #2B0C00 #002B0C
tetradic
#0C002B #2B0009 #1F2B00 #002B21
square
#0C002B #2B0009 #1F2B00 #002B21
split-complementary
#0C002B #2B2100 #092B00
monochromatic
#09001F #09001F #0C002B #1D0068 #2E00A5

Accessibility & contrast

On white

19.99
#0C002B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C002B
19.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C002B#FFFFFF#000000##FFFFFF
##0C002B1.0019.991.0519.99
#FFFFFF19.991.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00092C
Deuteranopia (green-blind)
#00072A
Tritanopia (blue-blind)
#010B15
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0c002b;
/* rgb */ color: rgb(12, 0, 43);
/* oklch */ color: oklch(14.8% 0.085 287.6);
Tailwind
colors: {
  custom: {
    50: '#4d4664',
    500: '#0c002b',
    950: '#000000',
  },
}
SCSS
$custom: #0c002b;
$custom-light: #4d4664;
$custom-dark: #000000;
JSON
{
  "hex": "#0c002b",
  "rgb": {
    "r": 12,
    "g": 0,
    "b": 43
  },
  "hsl": {
    "h": 256.744,
    "s": 100,
    "l": 8.431
  },
  "oklch": {
    "l": 0.14752,
    "c": 0.08475,
    "h": 287.6
  },
  "luminance": 0.00253
}

Semantic roles & 50–950 ramp

primary
#0C002B
secondary
#587314
accent
#FF29C3
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #0C002B

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

Preview Lab → · Contrast checker → · Palette generator →

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