#0C0027#0C0027

#0C0027 is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 14.2% C 0.080 H 290.7°. Best body text is #FFFFFF at 20.10:1 contrast (WCAG AA passes).

Color values

HEX#0C0027
RGBrgb(12, 0, 39)
HSLhsl(258, 100%, 8%)
HSVhsv(258, 100%, 15%)
CMYKcmyk(69.2%, 100%, 0%, 84.7%)
CIE-LABlab(2.03, 12.46, -21.11)
CIE-LCHlch(2.03, 24.51, 300.56°)
OKLaboklab(14.18% 0.0282 -0.0747)
OKLCHoklch(14.18% 0.08 290.7)
XYZxyz(0.5177, 0.2246, 1.9351)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0027 #1B2700
analogous
#000727 #0C0027 #200027
triadic
#0C0027 #270C00 #00270C
tetradic
#0C0027 #270007 #1B2700 #002720
square
#0C0027 #270007 #1B2700 #002720
split-complementary
#0C0027 #272000 #072700
monochromatic
#09001F #09001F #0C0027 #1F0064 #3200A1

Accessibility & contrast

On white

20.10
#0C0027 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0027
20.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0027#FFFFFF#000000##FFFFFF
##0C00271.0020.101.0520.10
#FFFFFF20.101.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000828
Deuteranopia (green-blind)
#000726
Tritanopia (blue-blind)
#030912
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0c0027;
/* rgb */ color: rgb(12, 0, 39);
/* oklch */ color: oklch(14.2% 0.080 290.7);
Tailwind
colors: {
  custom: {
    50: '#4c4661',
    500: '#0c0027',
    950: '#000000',
  },
}
SCSS
$custom: #0c0027;
$custom-light: #4c4661;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0027",
  "rgb": {
    "r": 12,
    "g": 0,
    "b": 39
  },
  "hsl": {
    "h": 258.462,
    "s": 100,
    "l": 7.647
  },
  "oklch": {
    "l": 0.14175,
    "c": 0.07989,
    "h": 290.7
  },
  "luminance": 0.00225
}

Semantic roles & 50–950 ramp

primary
#0C0027
secondary
#536F14
accent
#FF29BD
background
#F4F3F5
surface
#E7E5EA
border
#C3C1C6
text
#010005
muted
#777779

Preview Lab

Preview with #0C0027

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

Preview Lab → · Contrast checker → · Palette generator →

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