#0D052F#0D052F

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

Color values

HEX#0D052F
RGBrgb(13, 5, 47)
HSLhsl(251, 81%, 10%)
HSVhsv(251, 89%, 18%)
CMYKcmyk(72.3%, 89.4%, 0%, 81.6%)
CIE-LABlab(3.61, 14.49, -24.71)
CIE-LCHlch(3.61, 28.65, 300.38°)
OKLaboklab(16.73% 0.0183 -0.0772)
OKLCHoklch(16.73% 0.079 283.3)
XYZxyz(0.7332, 0.3993, 2.7272)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D052F #272F05
analogous
#05122F #0D052F #22052F
triadic
#0D052F #2F0D05 #052F0D
tetradic
#0D052F #2F0512 #272F05 #052F22
square
#0D052F #2F0512 #272F05 #052F22
split-complementary
#0D052F #2F2205 #122F05
monochromatic
#08031C #08031C #0D052F #1C0B66 #2C119E

Accessibility & contrast

On white

19.45
#0D052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D052F
19.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D052F#FFFFFF#000000##FFFFFF
##0D052F1.0019.451.0819.45
#FFFFFF19.451.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E30
Deuteranopia (green-blind)
#000B2E
Tritanopia (blue-blind)
#001019
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0d052f;
/* rgb */ color: rgb(13, 5, 47);
/* oklch */ color: oklch(16.7% 0.079 283.3);
Tailwind
colors: {
  custom: {
    50: '#4f4868',
    500: '#0d052f',
    950: '#000000',
  },
}
SCSS
$custom: #0d052f;
$custom-light: #4f4868;
$custom-dark: #000000;
JSON
{
  "hex": "#0d052f",
  "rgb": {
    "r": 13,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 251.429,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.1673,
    "c": 0.07936,
    "h": 283.3
  },
  "luminance": 0.00399
}

Semantic roles & 50–950 ramp

primary
#0D052F
secondary
#61711F
accent
#F731D1
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0D052F

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

Preview Lab → · Contrast checker → · Palette generator →

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