#2D0D48#2D0D48

#2D0D48 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.104 H 304.5°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#2D0D48
RGBrgb(45, 13, 72)
HSLhsl(273, 69%, 17%)
HSVhsv(273, 82%, 28%)
CMYKcmyk(37.5%, 81.9%, 0%, 71.8%)
CIE-LABlab(11.37, 28.62, -29.99)
CIE-LCHlch(11.37, 41.45, 313.66°)
OKLaboklab(24.88% 0.0586 -0.0854)
OKLCHoklch(24.88% 0.104 304.5)
XYZxyz(2.3955, 1.3136, 6.2570)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0D48 #28480D
analogous
#0F0D48 #2D0D48 #480D46
triadic
#2D0D48 #482D0D #0D482D
tetradic
#2D0D48 #480F0D #28480D #0D4648
square
#2D0D48 #480F0D #28480D #0D4648
split-complementary
#2D0D48 #46480D #0D480F
monochromatic
#10051A #10051A #2D0D48 #4D167C #6E20B0

Accessibility & contrast

On white

16.63
#2D0D48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2D0D48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0D48
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0D48#FFFFFF#000000##FFFFFF
##2D0D481.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4A
Deuteranopia (green-blind)
#001E47
Tritanopia (blue-blind)
#281B29
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d0d48;
/* rgb */ color: rgb(45, 13, 72);
/* oklch */ color: oklch(24.9% 0.104 304.5);
Tailwind
colors: {
  custom: {
    50: '#694f7b',
    500: '#2d0d48',
    950: '#000000',
  },
}
SCSS
$custom: #2d0d48;
$custom-light: #694f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0d48",
  "rgb": {
    "r": 45,
    "g": 13,
    "b": 72
  },
  "hsl": {
    "h": 272.542,
    "s": 69.412,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24878,
    "c": 0.10356,
    "h": 304.5
  },
  "luminance": 0.01314
}

Semantic roles & 50–950 ramp

primary
#2D0D48
secondary
#55832D
accent
#EC3C8C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2D0D48

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

Preview Lab → · Contrast checker → · Palette generator →

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