#0D052C#0D052C

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

Color values

HEX#0D052C
RGBrgb(13, 5, 44)
HSLhsl(252, 80%, 10%)
HSVhsv(252, 89%, 17%)
CMYKcmyk(70.5%, 88.6%, 0%, 82.7%)
CIE-LABlab(3.40, 13.00, -22.79)
CIE-LCHlch(3.40, 26.24, 299.71°)
OKLaboklab(16.36% 0.0192 -0.0724)
OKLCHoklch(16.36% 0.075 284.9)
XYZxyz(0.6747, 0.3759, 2.4194)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D052C #242C05
analogous
#05112C #0D052C #21052C
triadic
#0D052C #2C0D05 #052C0D
tetradic
#0D052C #2C0511 #242C05 #052C21
square
#0D052C #2C0511 #242C05 #052C21
split-complementary
#0D052C #2C2105 #112C05
monochromatic
#08031B #08031B #0D052C #1D0B63 #2D119A

Accessibility & contrast

On white

19.53
#0D052C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D052C
19.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D052C#FFFFFF#000000##FFFFFF
##0D052C1.0019.531.0819.53
#FFFFFF19.531.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2D
Deuteranopia (green-blind)
#000B2B
Tritanopia (blue-blind)
#010F17
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0d052c;
/* rgb */ color: rgb(13, 5, 44);
/* oklch */ color: oklch(16.4% 0.075 284.9);
Tailwind
colors: {
  custom: {
    50: '#4e4865',
    500: '#0d052c',
    950: '#000000',
  },
}
SCSS
$custom: #0d052c;
$custom-light: #4e4865;
$custom-dark: #000000;
JSON
{
  "hex": "#0d052c",
  "rgb": {
    "r": 13,
    "g": 5,
    "b": 44
  },
  "hsl": {
    "h": 252.308,
    "s": 79.592,
    "l": 9.608
  },
  "oklch": {
    "l": 0.16361,
    "c": 0.07488,
    "h": 284.9
  },
  "luminance": 0.00376
}

Semantic roles & 50–950 ramp

primary
#0D052C
secondary
#5E6E1F
accent
#F632CE
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0D052C

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

Preview Lab → · Contrast checker → · Palette generator →

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