#2D0D4F#2D0D4F

#2D0D4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.112 H 300.5°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#2D0D4F
RGBrgb(45, 13, 79)
HSLhsl(269, 72%, 18%)
HSVhsv(269, 84%, 31%)
CMYKcmyk(43%, 83.5%, 0%, 69%)
CIE-LABlab(12.03, 30.57, -33.77)
CIE-LCHlch(12.03, 45.55, 312.15°)
OKLaboklab(25.54% 0.0568 -0.0965)
OKLCHoklch(25.54% 0.112 300.5)
XYZxyz(2.6370, 1.4102, 7.5289)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0D4F #2F4F0D
analogous
#0D0E4F #2D0D4F #4E0D4F
triadic
#2D0D4F #4F2D0D #0D4F2D
tetradic
#2D0D4F #4F0D0E #2F4F0D #0D4F4E
square
#2D0D4F #4F0D0E #2F4F0D #0D4F4E
split-complementary
#2D0D4F #4F4E0D #0E4F0D
monochromatic
#0F041A #0F041A #2D0D4F #4B1684 #691EB8

Accessibility & contrast

On white

16.38
#2D0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0D4F
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0D4F#FFFFFF#000000##FFFFFF
##2D0D4F1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#251E2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d0d4f;
/* rgb */ color: rgb(45, 13, 79);
/* oklch */ color: oklch(25.5% 0.112 300.5);
Tailwind
colors: {
  custom: {
    50: '#6a5081',
    500: '#2d0d4f',
    950: '#000000',
  },
}
SCSS
$custom: #2d0d4f;
$custom-light: #6a5081;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0d4f",
  "rgb": {
    "r": 45,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 269.091,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25543,
    "c": 0.11194,
    "h": 300.5
  },
  "luminance": 0.0141
}

Semantic roles & 50–950 ramp

primary
#2D0D4F
secondary
#5D8A2E
accent
#EE3997
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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