#0D031F#0D031F

#0D031F is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 14.3% C 0.060 H 296.6°. Best body text is #FFFFFF at 20.00:1 contrast (WCAG AA passes).

Color values

HEX#0D031F
RGBrgb(13, 3, 31)
HSLhsl(261, 82%, 7%)
HSVhsv(261, 90%, 12%)
CMYKcmyk(58.1%, 90.3%, 0%, 87.8%)
CIE-LABlab(2.25, 8.54, -14.48)
CIE-LCHlch(2.25, 16.81, 300.54°)
OKLaboklab(14.27% 0.027 -0.0538)
OKLCHoklch(14.27% 0.06 296.6)
XYZxyz(0.4458, 0.2496, 1.3207)
Luminance0.0025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D031F #151F03
analogous
#03071F #0D031F #1B031F
triadic
#0D031F #1F0D03 #031F0D
tetradic
#0D031F #1F0307 #151F03 #031F1B
square
#0D031F #1F0307 #151F03 #031F1B
split-complementary
#0D031F #1F1B03 #071F03
monochromatic
#0C031C #0C031C #0D031F #240857 #3C0E8F

Accessibility & contrast

On white

20.00
#0D031F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#0D031F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D031F
20.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D031F#FFFFFF#000000##FFFFFF
##0D031F1.0020.001.0520.00
#FFFFFF20.001.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000820
Deuteranopia (green-blind)
#00081E
Tritanopia (blue-blind)
#08080F
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0d031f;
/* rgb */ color: rgb(13, 3, 31);
/* oklch */ color: oklch(14.3% 0.060 296.6);
Tailwind
colors: {
  custom: {
    50: '#4c485a',
    500: '#0d031f',
    950: '#000000',
  },
}
SCSS
$custom: #0d031f;
$custom-light: #4c485a;
$custom-dark: #000000;
JSON
{
  "hex": "#0d031f",
  "rgb": {
    "r": 13,
    "g": 3,
    "b": 31
  },
  "hsl": {
    "h": 261.429,
    "s": 82.353,
    "l": 6.667
  },
  "oklch": {
    "l": 0.14274,
    "c": 0.06024,
    "h": 296.6
  },
  "luminance": 0.0025
}

Semantic roles & 50–950 ramp

primary
#0D031F
secondary
#49631B
accent
#F92FB1
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #0D031F

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

Preview Lab → · Contrast checker → · Palette generator →

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