#0D012F#0D012F

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

Color values

HEX#0D012F
RGBrgb(13, 1, 47)
HSLhsl(256, 96%, 9%)
HSVhsv(256, 98%, 18%)
CMYKcmyk(72.3%, 97.9%, 0%, 81.6%)
CIE-LABlab(2.82, 16.09, -25.96)
CIE-LCHlch(2.82, 30.54, 301.79°)
OKLaboklab(15.74% 0.0238 -0.084)
OKLCHoklch(15.74% 0.087 285.8)
XYZxyz(0.6898, 0.3125, 2.7127)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D012F #232F01
analogous
#010C2F #0D012F #24012F
triadic
#0D012F #2F0D01 #012F0D
tetradic
#0D012F #2F010C #232F01 #012F24
square
#0D012F #2F010C #232F01 #012F24
split-complementary
#0D012F #2F2401 #0C2F01
monochromatic
#08011E #08011E #0D012F #1E026B #2E04A7

Accessibility & contrast

On white

19.76
#0D012F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D012F
19.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D012F#FFFFFF#000000##FFFFFF
##0D012F1.0019.761.0619.76
#FFFFFF19.761.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0d012f;
/* rgb */ color: rgb(13, 1, 47);
/* oklch */ color: oklch(15.7% 0.087 285.8);
Tailwind
colors: {
  custom: {
    50: '#4e4668',
    500: '#0d012f',
    950: '#000000',
  },
}
SCSS
$custom: #0d012f;
$custom-light: #4e4668;
$custom-dark: #000000;
JSON
{
  "hex": "#0d012f",
  "rgb": {
    "r": 13,
    "g": 1,
    "b": 47
  },
  "hsl": {
    "h": 255.652,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.15736,
    "c": 0.08733,
    "h": 285.8
  },
  "luminance": 0.00313
}

Semantic roles & 50–950 ramp

primary
#0D012F
secondary
#5C7517
accent
#FF29C7
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0D012F

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

Preview Lab → · Contrast checker → · Palette generator →

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