#0D0331#0D0331

#0D0331 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.5% C 0.086 H 283.5°. Best body text is #FFFFFF at 19.55:1 contrast (WCAG AA passes).

Color values

HEX#0D0331
RGBrgb(13, 3, 49)
HSLhsl(253, 88%, 10%)
HSVhsv(253, 94%, 19%)
CMYKcmyk(73.5%, 93.9%, 0%, 80.8%)
CIE-LABlab(3.36, 16.33, -26.60)
CIE-LCHlch(3.36, 31.21, 301.56°)
OKLaboklab(16.51% 0.0201 -0.0836)
OKLCHoklch(16.51% 0.086 283.5)
XYZxyz(0.7527, 0.3724, 2.9373)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0331 #273103
analogous
#031031 #0D0331 #240331
triadic
#0D0331 #310D03 #03310D
tetradic
#0D0331 #310310 #273103 #033124
square
#0D0331 #310310 #273103 #033124
split-complementary
#0D0331 #312403 #103103
monochromatic
#08021D #08021D #0D0331 #1C076B #2C0AA4

Accessibility & contrast

On white

19.55
#0D0331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#0D0331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D0331
19.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0331#FFFFFF#000000##FFFFFF
##0D03311.0019.551.0719.55
#FFFFFF19.551.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E32
Deuteranopia (green-blind)
#000B30
Tritanopia (blue-blind)
#001019
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0d0331;
/* rgb */ color: rgb(13, 3, 49);
/* oklch */ color: oklch(16.5% 0.086 283.5);
Tailwind
colors: {
  custom: {
    50: '#4f4769',
    500: '#0d0331',
    950: '#000000',
  },
}
SCSS
$custom: #0d0331;
$custom-light: #4f4769;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0331",
  "rgb": {
    "r": 13,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 253.043,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16513,
    "c": 0.08595,
    "h": 283.5
  },
  "luminance": 0.00372
}

Semantic roles & 50–950 ramp

primary
#0D0331
secondary
#61741B
accent
#FF29D0
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0D0331

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

Preview Lab → · Contrast checker → · Palette generator →

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