#2D0D4D#2D0D4D

#2D0D4D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.110 H 301.6°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#2D0D4D
RGBrgb(45, 13, 77)
HSLhsl(270, 71%, 18%)
HSVhsv(270, 83%, 30%)
CMYKcmyk(41.6%, 83.1%, 0%, 69.8%)
CIE-LABlab(11.83, 30.01, -32.70)
CIE-LCHlch(11.83, 44.38, 312.54°)
OKLaboklab(25.35% 0.0574 -0.0933)
OKLCHoklch(25.35% 0.11 301.6)
XYZxyz(2.5653, 1.3815, 7.1513)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0D4D #2D4D0D
analogous
#0D0D4D #2D0D4D #4D0D4D
triadic
#2D0D4D #4D2D0D #0D4D2D
tetradic
#2D0D4D #4D0D0D #2D4D0D #0D4D4D
square
#2D0D4D #4D0D0D #2D4D0D #0D4D4D
split-complementary
#2D0D4D #4D4D0D #0D4D0D
monochromatic
#0F041A #0F041A #2D0D4D #4C1681 #6A1FB6

Accessibility & contrast

On white

16.45
#2D0D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2D0D4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0D4D
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0D4D#FFFFFF#000000##FFFFFF
##2D0D4D1.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#261E2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d0d4d;
/* rgb */ color: rgb(45, 13, 77);
/* oklch */ color: oklch(25.3% 0.110 301.6);
Tailwind
colors: {
  custom: {
    50: '#6a4f7f',
    500: '#2d0d4d',
    950: '#000000',
  },
}
SCSS
$custom: #2d0d4d;
$custom-light: #6a4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0d4d",
  "rgb": {
    "r": 45,
    "g": 13,
    "b": 77
  },
  "hsl": {
    "h": 270,
    "s": 71.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25349,
    "c": 0.10956,
    "h": 301.6
  },
  "luminance": 0.01382
}

Semantic roles & 50–950 ramp

primary
#2D0D4D
secondary
#5B882E
accent
#EE3A94
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0D4D

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

Preview Lab → · Contrast checker → · Palette generator →

#2D0D4D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva