#0D0728#0D0728

#0D0728 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.4% C 0.065 H 285.5°. Best body text is #FFFFFF at 19.48:1 contrast (WCAG AA passes).

Color values

HEX#0D0728
RGBrgb(13, 7, 40)
HSLhsl(251, 70%, 9%)
HSVhsv(251, 83%, 16%)
CMYKcmyk(67.5%, 82.5%, 0%, 84.3%)
CIE-LABlab(3.53, 10.38, -19.53)
CIE-LCHlch(3.53, 22.12, 297.99°)
OKLaboklab(16.39% 0.0173 -0.0623)
OKLCHoklch(16.39% 0.065 285.5)
XYZxyz(0.6248, 0.3907, 2.0496)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0728 #222807
analogous
#071228 #0D0728 #1E0728
triadic
#0D0728 #280D07 #07280D
tetradic
#0D0728 #280712 #222807 #07281E
square
#0D0728 #280712 #222807 #07281E
split-complementary
#0D0728 #281E07 #122807
monochromatic
#08051A #08051A #0D0728 #1E105C #2F1990

Accessibility & contrast

On white

19.48
#0D0728 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D0728
19.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0728#FFFFFF#000000##FFFFFF
##0D07281.0019.481.0819.48
#FFFFFF19.481.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E29
Deuteranopia (green-blind)
#000C27
Tritanopia (blue-blind)
#040F16
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0d0728;
/* rgb */ color: rgb(13, 7, 40);
/* oklch */ color: oklch(16.4% 0.065 285.5);
Tailwind
colors: {
  custom: {
    50: '#4d4a62',
    500: '#0d0728',
    950: '#000000',
  },
}
SCSS
$custom: #0d0728;
$custom-light: #4d4a62;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0728",
  "rgb": {
    "r": 13,
    "g": 7,
    "b": 40
  },
  "hsl": {
    "h": 250.909,
    "s": 70.213,
    "l": 9.216
  },
  "oklch": {
    "l": 0.16389,
    "c": 0.06468,
    "h": 285.5
  },
  "luminance": 0.00391
}

Semantic roles & 50–950 ramp

primary
#0D0728
secondary
#5B6823
accent
#ED3BCD
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #0D0728

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

Preview Lab → · Contrast checker → · Palette generator →

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