#0D0336#0D0336

#0D0336 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.2% C 0.093 H 281.1°. Best body text is #FFFFFF at 19.38:1 contrast (WCAG AA passes).

Color values

HEX#0D0336
RGBrgb(13, 3, 54)
HSLhsl(252, 89%, 11%)
HSVhsv(252, 94%, 21%)
CMYKcmyk(75.9%, 94.4%, 0%, 78.8%)
CIE-LABlab(3.77, 19.16, -29.66)
CIE-LCHlch(3.77, 35.31, 302.86°)
OKLaboklab(17.19% 0.0179 -0.091)
OKLCHoklch(17.19% 0.093 281.1)
XYZxyz(0.8642, 0.4170, 3.5243)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0336 #2C3603
analogous
#031236 #0D0336 #260336
triadic
#0D0336 #360D03 #03360D
tetradic
#0D0336 #360312 #2C3603 #033626
square
#0D0336 #360312 #2C3603 #033626
split-complementary
#0D0336 #362603 #123603
monochromatic
#07021D #07021D #0D0336 #1B0670 #2909AA

Accessibility & contrast

On white

19.38
#0D0336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#0D0336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D0336
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0336#FFFFFF#000000##FFFFFF
##0D03361.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F37
Deuteranopia (green-blind)
#000B35
Tritanopia (blue-blind)
#00121C
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0d0336;
/* rgb */ color: rgb(13, 3, 54);
/* oklch */ color: oklch(17.2% 0.093 281.1);
Tailwind
colors: {
  custom: {
    50: '#51476d',
    500: '#0d0336',
    950: '#000000',
  },
}
SCSS
$custom: #0d0336;
$custom-light: #51476d;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0336",
  "rgb": {
    "r": 13,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 251.765,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.17189,
    "c": 0.09277,
    "h": 281.1
  },
  "luminance": 0.00417
}

Semantic roles & 50–950 ramp

primary
#0D0336
secondary
#67791C
accent
#FF29D5
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0D0336

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

Preview Lab → · Contrast checker → · Palette generator →

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