#0C012F#0C012F

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

Color values

HEX#0C012F
RGBrgb(12, 1, 47)
HSLhsl(254, 96%, 9%)
HSVhsv(254, 98%, 18%)
CMYKcmyk(74.5%, 97.9%, 0%, 81.6%)
CIE-LABlab(2.76, 15.79, -26.07)
CIE-LCHlch(2.76, 30.48, 301.20°)
OKLaboklab(15.61% 0.0217 -0.0847)
OKLCHoklch(15.61% 0.087 284.4)
XYZxyz(0.6754, 0.3051, 2.7121)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C012F #242F01
analogous
#010D2F #0C012F #23012F
triadic
#0C012F #2F0C01 #012F0C
tetradic
#0C012F #2F010D #242F01 #012F23
square
#0C012F #2F010D #242F01 #012F23
split-complementary
#0C012F #2F2301 #0D2F01
monochromatic
#08011E #08011E #0C012F #1B026B #2B04A7

Accessibility & contrast

On white

19.79
#0C012F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C012F
19.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C012F#FFFFFF#000000##FFFFFF
##0C012F1.0019.791.0619.79
#FFFFFF19.791.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B30
Deuteranopia (green-blind)
#00092E
Tritanopia (blue-blind)
#000D18
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0c012f;
/* rgb */ color: rgb(12, 1, 47);
/* oklch */ color: oklch(15.6% 0.087 284.4);
Tailwind
colors: {
  custom: {
    50: '#4e4768',
    500: '#0c012f',
    950: '#000000',
  },
}
SCSS
$custom: #0c012f;
$custom-light: #4e4768;
$custom-dark: #000000;
JSON
{
  "hex": "#0c012f",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 47
  },
  "hsl": {
    "h": 254.348,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.15613,
    "c": 0.08745,
    "h": 284.4
  },
  "luminance": 0.00305
}

Semantic roles & 50–950 ramp

primary
#0C012F
secondary
#5E7517
accent
#FF29CC
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C012F

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

Preview Lab → · Contrast checker → · Palette generator →

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