#0D012B#0D012B

#0D012B is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.2% C 0.082 H 288.4°. Best body text is #FFFFFF at 19.88:1 contrast (WCAG AA passes).

Color values

HEX#0D012B
RGBrgb(13, 1, 43)
HSLhsl(257, 95%, 9%)
HSVhsv(257, 98%, 17%)
CMYKcmyk(69.8%, 97.7%, 0%, 83.1%)
CIE-LABlab(2.54, 14.13, -23.37)
CIE-LCHlch(2.54, 27.31, 301.16°)
OKLaboklab(15.18% 0.026 -0.078)
OKLCHoklch(15.18% 0.082 288.4)
XYZxyz(0.6127, 0.2817, 2.3071)
Luminance0.0028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D012B #1F2B01
analogous
#010A2B #0D012B #22012B
triadic
#0D012B #2B0D01 #012B0D
tetradic
#0D012B #2B010A #1F2B01 #012B22
square
#0D012B #2B010A #1F2B01 #012B22
split-complementary
#0D012B #2B2201 #0A2B01
monochromatic
#09011E #09011E #0D012B #1F0267 #3104A3

Accessibility & contrast

On white

19.88
#0D012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D012B
19.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D012B#FFFFFF#000000##FFFFFF
##0D012B1.0019.881.0619.88
#FFFFFF19.881.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A2C
Deuteranopia (green-blind)
#00082A
Tritanopia (blue-blind)
#020C15
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #0d012b;
/* rgb */ color: rgb(13, 1, 43);
/* oklch */ color: oklch(15.2% 0.082 288.4);
Tailwind
colors: {
  custom: {
    50: '#4d4764',
    500: '#0d012b',
    950: '#000000',
  },
}
SCSS
$custom: #0d012b;
$custom-light: #4d4764;
$custom-dark: #000000;
JSON
{
  "hex": "#0d012b",
  "rgb": {
    "r": 13,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 257.143,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.15179,
    "c": 0.0822,
    "h": 288.4
  },
  "luminance": 0.00282
}

Semantic roles & 50–950 ramp

primary
#0D012B
secondary
#577117
accent
#FF29C2
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0D012B

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

Preview Lab → · Contrast checker → · Palette generator →

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