#2D0D4E#2D0D4E

#2D0D4E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.111 H 301.0°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#2D0D4E
RGBrgb(45, 13, 78)
HSLhsl(270, 71%, 18%)
HSVhsv(270, 83%, 31%)
CMYKcmyk(42.3%, 83.3%, 0%, 69.4%)
CIE-LABlab(11.93, 30.29, -33.24)
CIE-LCHlch(11.93, 44.97, 312.34°)
OKLaboklab(25.45% 0.0571 -0.0949)
OKLCHoklch(25.45% 0.111 301)
XYZxyz(2.6009, 1.3958, 7.3386)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0D4E #2E4E0D
analogous
#0D0E4E #2D0D4E #4D0D4E
triadic
#2D0D4E #4E2D0D #0D4E2D
tetradic
#2D0D4E #4E0D0E #2E4E0D #0D4E4D
square
#2D0D4E #4E0D0E #2E4E0D #0D4E4D
split-complementary
#2D0D4E #4E4D0D #0E4E0D
monochromatic
#0F041A #0F041A #2D0D4E #4B1682 #6A1EB7

Accessibility & contrast

On white

16.42
#2D0D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0D4E
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0D4E#FFFFFF#000000##FFFFFF
##2D0D4E1.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#001F4D
Tritanopia (blue-blind)
#261E2D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d0d4e;
/* rgb */ color: rgb(45, 13, 78);
/* oklch */ color: oklch(25.4% 0.111 301.0);
Tailwind
colors: {
  custom: {
    50: '#6a4f80',
    500: '#2d0d4e',
    950: '#000000',
  },
}
SCSS
$custom: #2d0d4e;
$custom-light: #6a4f80;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0d4e",
  "rgb": {
    "r": 45,
    "g": 13,
    "b": 78
  },
  "hsl": {
    "h": 269.538,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25446,
    "c": 0.11075,
    "h": 301
  },
  "luminance": 0.01396
}

Semantic roles & 50–950 ramp

primary
#2D0D4E
secondary
#5C892E
accent
#EE3A95
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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