#0C032B#0C032B

#0C032B is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.6% C 0.078 H 285.4°. Best body text is #FFFFFF at 19.74:1 contrast (WCAG AA passes).

Color values

HEX#0C032B
RGBrgb(12, 3, 43)
HSLhsl(254, 87%, 9%)
HSVhsv(254, 93%, 17%)
CMYKcmyk(72.1%, 93%, 0%, 83.1%)
CIE-LABlab(2.87, 13.03, -22.86)
CIE-LCHlch(2.87, 26.32, 299.68°)
OKLaboklab(15.6% 0.0207 -0.0749)
OKLCHoklch(15.6% 0.078 285.4)
XYZxyz(0.6201, 0.3177, 2.3137)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C032B #222B03
analogous
#030E2B #0C032B #20032B
triadic
#0C032B #2B0C03 #032B0C
tetradic
#0C032B #2B030E #222B03 #032B20
square
#0C032B #2B030E #222B03 #032B20
split-complementary
#0C032B #2B2003 #0E2B03
monochromatic
#08021D #08021D #0C032B #1C0764 #2C0B9D

Accessibility & contrast

On white

19.74
#0C032B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C032B
19.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C032B#FFFFFF#000000##FFFFFF
##0C032B1.0019.741.0619.74
#FFFFFF19.741.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2C
Deuteranopia (green-blind)
#00092A
Tritanopia (blue-blind)
#010D16
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0c032b;
/* rgb */ color: rgb(12, 3, 43);
/* oklch */ color: oklch(15.6% 0.078 285.4);
Tailwind
colors: {
  custom: {
    50: '#4d4864',
    500: '#0c032b',
    950: '#000000',
  },
}
SCSS
$custom: #0c032b;
$custom-light: #4d4864;
$custom-dark: #000000;
JSON
{
  "hex": "#0c032b",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 43
  },
  "hsl": {
    "h": 253.5,
    "s": 86.957,
    "l": 9.02
  },
  "oklch": {
    "l": 0.15605,
    "c": 0.0777,
    "h": 285.4
  },
  "luminance": 0.00318
}

Semantic roles & 50–950 ramp

primary
#0C032B
secondary
#5C6F1B
accent
#FD2BCE
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #0C032B

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

Preview Lab → · Contrast checker → · Palette generator →

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