#2D0D4B#2D0D4B

#2D0D4B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.107 H 302.7°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#2D0D4B
RGBrgb(45, 13, 75)
HSLhsl(271, 70%, 17%)
HSVhsv(271, 83%, 29%)
CMYKcmyk(40%, 82.7%, 0%, 70.6%)
CIE-LABlab(11.65, 29.45, -31.63)
CIE-LCHlch(11.65, 43.22, 312.96°)
OKLaboklab(25.16% 0.0579 -0.0902)
OKLCHoklch(25.16% 0.107 302.7)
XYZxyz(2.4958, 1.3537, 6.7851)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0D4B #2B4B0D
analogous
#0E0D4B #2D0D4B #4B0D4A
triadic
#2D0D4B #4B2D0D #0D4B2D
tetradic
#2D0D4B #4B0E0D #2B4B0D #0D4A4B
square
#2D0D4B #4B0E0D #2B4B0D #0D4A4B
split-complementary
#2D0D4B #4A4B0D #0D4B0E
monochromatic
#10051A #10051A #2D0D4B #4C167F #6C1FB3

Accessibility & contrast

On white

16.53
#2D0D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0D4B
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0D4B#FFFFFF#000000##FFFFFF
##2D0D4B1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#271D2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d0d4b;
/* rgb */ color: rgb(45, 13, 75);
/* oklch */ color: oklch(25.2% 0.107 302.7);
Tailwind
colors: {
  custom: {
    50: '#6a4f7e',
    500: '#2d0d4b',
    950: '#000000',
  },
}
SCSS
$custom: #2d0d4b;
$custom-light: #6a4f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0d4b",
  "rgb": {
    "r": 45,
    "g": 13,
    "b": 75
  },
  "hsl": {
    "h": 270.968,
    "s": 70.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25158,
    "c": 0.10716,
    "h": 302.7
  },
  "luminance": 0.01354
}

Semantic roles & 50–950 ramp

primary
#2D0D4B
secondary
#58862E
accent
#ED3B91
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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