#0D012E#0D012E

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

Color values

HEX#0D012E
RGBrgb(13, 1, 46)
HSLhsl(256, 96%, 9%)
HSVhsv(256, 98%, 18%)
CMYKcmyk(71.7%, 97.8%, 0%, 82%)
CIE-LABlab(2.75, 15.58, -25.32)
CIE-LCHlch(2.75, 29.73, 301.61°)
OKLaboklab(15.6% 0.0243 -0.0825)
OKLCHoklch(15.6% 0.086 286.4)
XYZxyz(0.6698, 0.3045, 2.6077)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D012E #222E01
analogous
#010C2E #0D012E #24012E
triadic
#0D012E #2E0D01 #012E0D
tetradic
#0D012E #2E010C #222E01 #012E24
square
#0D012E #2E010C #222E01 #012E24
split-complementary
#0D012E #2E2401 #0C2E01
monochromatic
#08011E #08011E #0D012E #1E026A #2F04A6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0D012E#FFFFFF#000000##FFFFFF
##0D012E1.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)
#000B2F
Deuteranopia (green-blind)
#00092D
Tritanopia (blue-blind)
#000D17
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0d012e;
/* rgb */ color: rgb(13, 1, 46);
/* oklch */ color: oklch(15.6% 0.086 286.4);
Tailwind
colors: {
  custom: {
    50: '#4e4767',
    500: '#0d012e',
    950: '#000000',
  },
}
SCSS
$custom: #0d012e;
$custom-light: #4e4767;
$custom-dark: #000000;
JSON
{
  "hex": "#0d012e",
  "rgb": {
    "r": 13,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 256,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15595,
    "c": 0.08605,
    "h": 286.4
  },
  "luminance": 0.00305
}

Semantic roles & 50–950 ramp

primary
#0D012E
secondary
#5B7417
accent
#FF29C6
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0D012E

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

Preview Lab → · Contrast checker → · Palette generator →

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