#0D072B#0D072B

#0D072B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.7% C 0.070 H 283.9°. Best body text is #FFFFFF at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#0D072B
RGBrgb(13, 7, 43)
HSLhsl(250, 72%, 10%)
HSVhsv(250, 84%, 17%)
CMYKcmyk(69.8%, 83.7%, 0%, 83.1%)
CIE-LABlab(3.72, 11.73, -21.52)
CIE-LCHlch(3.72, 24.51, 298.60°)
OKLaboklab(16.72% 0.0167 -0.0675)
OKLCHoklch(16.72% 0.07 283.9)
XYZxyz(0.6779, 0.4119, 2.3288)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D072B #252B07
analogous
#07132B #0D072B #1F072B
triadic
#0D072B #2B0D07 #072B0D
tetradic
#0D072B #2B0713 #252B07 #072B1F
square
#0D072B #2B0713 #252B07 #072B1F
split-complementary
#0D072B #2B1F07 #132B07
monochromatic
#08041A #08041A #0D072B #1D1060 #2D1894

Accessibility & contrast

On white

19.40
#0D072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D072B
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D072B#FFFFFF#000000##FFFFFF
##0D072B1.0019.401.0819.40
#FFFFFF19.401.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2C
Deuteranopia (green-blind)
#000C2A
Tritanopia (blue-blind)
#021017
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0d072b;
/* rgb */ color: rgb(13, 7, 43);
/* oklch */ color: oklch(16.7% 0.070 283.9);
Tailwind
colors: {
  custom: {
    50: '#4e4964',
    500: '#0d072b',
    950: '#000000',
  },
}
SCSS
$custom: #0d072b;
$custom-light: #4e4964;
$custom-dark: #000000;
JSON
{
  "hex": "#0d072b",
  "rgb": {
    "r": 13,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 250,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16723,
    "c": 0.06952,
    "h": 283.9
  },
  "luminance": 0.00412
}

Semantic roles & 50–950 ramp

primary
#0D072B
secondary
#5F6B23
accent
#EF39D0
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #0D072B

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

Preview Lab → · Contrast checker → · Palette generator →

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