#2D2240#2D2240

#2D2240 is a dark, muted violet. Relative luminance 0.021; OKLCH L 28.0% C 0.055 H 299.7°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#2D2240
RGBrgb(45, 34, 64)
HSLhsl(262, 31%, 19%)
HSVhsv(262, 47%, 25%)
CMYKcmyk(29.7%, 46.9%, 0%, 74.9%)
CIE-LABlab(15.86, 12.92, -17.23)
CIE-LCHlch(15.86, 21.53, 306.88°)
OKLaboklab(27.98% 0.0275 -0.0481)
OKLCHoklch(27.98% 0.055 299.7)
XYZxyz(2.5794, 2.0721, 5.1136)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2240 #354022
analogous
#222640 #2D2240 #3C2240
triadic
#2D2240 #402D22 #22402D
tetradic
#2D2240 #402226 #354022 #22403C
square
#2D2240 #402226 #354022 #22403C
split-complementary
#2D2240 #403C22 #264022
monochromatic
#0E0B14 #110D18 #2D2240 #493768 #654C90

Accessibility & contrast

On white

14.85
#2D2240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2D2240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2240
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2240#FFFFFF#000000##FFFFFF
##2D22401.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2741
Deuteranopia (green-blind)
#1C273F
Tritanopia (blue-blind)
#29272D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d2240;
/* rgb */ color: rgb(45, 34, 64);
/* oklch */ color: oklch(28.0% 0.055 299.7);
Tailwind
colors: {
  custom: {
    50: '#675d75',
    500: '#2d2240',
    950: '#000000',
  },
}
SCSS
$custom: #2d2240;
$custom-light: #675d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2240",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 262,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27984,
    "c": 0.05536,
    "h": 299.7
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

primary
#2D2240
secondary
#64734B
accent
#C761A1
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2D2240

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

Preview Lab → · Contrast checker → · Palette generator →

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