#0D012C#0D012C

#0D012C is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.3% C 0.083 H 287.7°. Best body text is #FFFFFF at 19.85:1 contrast (WCAG AA passes).

Color values

HEX#0D012C
RGBrgb(13, 1, 44)
HSLhsl(257, 96%, 9%)
HSVhsv(257, 98%, 17%)
CMYKcmyk(70.5%, 97.7%, 0%, 82.7%)
CIE-LABlab(2.61, 14.60, -24.03)
CIE-LCHlch(2.61, 28.12, 301.29°)
OKLaboklab(15.32% 0.0254 -0.0795)
OKLCHoklch(15.32% 0.083 287.7)
XYZxyz(0.6313, 0.2891, 2.4049)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D012C #202C01
analogous
#010B2C #0D012C #23012C
triadic
#0D012C #2C0D01 #012C0D
tetradic
#0D012C #2C010B #202C01 #012C23
square
#0D012C #2C010B #202C01 #012C23
split-complementary
#0D012C #2C2301 #0B2C01
monochromatic
#09011E #09011E #0D012C #1F0268 #3004A4

Accessibility & contrast

On white

19.85
#0D012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D012C
19.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D012C#FFFFFF#000000##FFFFFF
##0D012C1.0019.851.0619.85
#FFFFFF19.851.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2D
Deuteranopia (green-blind)
#00082B
Tritanopia (blue-blind)
#020C16
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0d012c;
/* rgb */ color: rgb(13, 1, 44);
/* oklch */ color: oklch(15.3% 0.083 287.7);
Tailwind
colors: {
  custom: {
    50: '#4e4765',
    500: '#0d012c',
    950: '#000000',
  },
}
SCSS
$custom: #0d012c;
$custom-light: #4e4765;
$custom-dark: #000000;
JSON
{
  "hex": "#0d012c",
  "rgb": {
    "r": 13,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 256.744,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.15317,
    "c": 0.08349,
    "h": 287.7
  },
  "luminance": 0.00289
}

Semantic roles & 50–950 ramp

primary
#0D012C
secondary
#597217
accent
#FF29C3
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0D012C

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

Preview Lab → · Contrast checker → · Palette generator →

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