#2D0D4C#2D0D4C

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

Color values

HEX#2D0D4C
RGBrgb(45, 13, 76)
HSLhsl(270, 71%, 17%)
HSVhsv(270, 83%, 30%)
CMYKcmyk(40.8%, 82.9%, 0%, 70.2%)
CIE-LABlab(11.74, 29.73, -32.17)
CIE-LCHlch(11.74, 43.80, 312.74°)
OKLaboklab(25.25% 0.0576 -0.0918)
OKLCHoklch(25.25% 0.108 302.1)
XYZxyz(2.5303, 1.3675, 6.9667)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0D4C #2C4C0D
analogous
#0D0D4C #2D0D4C #4C0D4C
triadic
#2D0D4C #4C2D0D #0D4C2D
tetradic
#2D0D4C #4C0D0D #2C4C0D #0D4C4C
square
#2D0D4C #4C0D0D #2C4C0D #0D4C4C
split-complementary
#2D0D4C #4C4C0D #0D4C0D
monochromatic
#0F041A #0F041A #2D0D4C #4C1680 #6B1FB5

Accessibility & contrast

On white

16.49
#2D0D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2D0D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0D4C
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0D4C#FFFFFF#000000##FFFFFF
##2D0D4C1.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#261D2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d0d4c;
/* rgb */ color: rgb(45, 13, 76);
/* oklch */ color: oklch(25.3% 0.108 302.1);
Tailwind
colors: {
  custom: {
    50: '#6a4f7f',
    500: '#2d0d4c',
    950: '#000000',
  },
}
SCSS
$custom: #2d0d4c;
$custom-light: #6a4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0d4c",
  "rgb": {
    "r": 45,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 270.476,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25253,
    "c": 0.10836,
    "h": 302.1
  },
  "luminance": 0.01368
}

Semantic roles & 50–950 ramp

primary
#2D0D4C
secondary
#5A872E
accent
#EE3A92
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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