#2D1040#2D1040

#2D1040 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.089 H 309.0°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#2D1040
RGBrgb(45, 16, 64)
HSLhsl(276, 60%, 16%)
HSVhsv(276, 75%, 25%)
CMYKcmyk(29.7%, 75%, 0%, 74.9%)
CIE-LABlab(11.27, 24.81, -24.54)
CIE-LCHlch(11.27, 34.89, 315.32°)
OKLaboklab(24.59% 0.0562 -0.0694)
OKLCHoklch(24.59% 0.089 309)
XYZxyz(2.1927, 1.2987, 4.9847)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1040 #234010
analogous
#151040 #2D1040 #40103B
triadic
#2D1040 #402D10 #10402D
tetradic
#2D1040 #401510 #234010 #103B40
square
#2D1040 #401510 #234010 #103B40
split-complementary
#2D1040 #3B4010 #104015
monochromatic
#110618 #110618 #2D1040 #4F1C71 #7228A2

Accessibility & contrast

On white

16.67
#2D1040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1040
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1040#FFFFFF#000000##FFFFFF
##2D10401.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#081E3F
Tritanopia (blue-blind)
#2A1A26
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d1040;
/* rgb */ color: rgb(45, 16, 64);
/* oklch */ color: oklch(24.6% 0.089 309.0);
Tailwind
colors: {
  custom: {
    50: '#685075',
    500: '#2d1040',
    950: '#000000',
  },
}
SCSS
$custom: #2d1040;
$custom-light: #685075;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1040",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 276.25,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24588,
    "c": 0.0893,
    "h": 309
  },
  "luminance": 0.01299
}

Semantic roles & 50–950 ramp

primary
#2D1040
secondary
#4E7A32
accent
#E34583
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D1040

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

Preview Lab → · Contrast checker → · Palette generator →

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