#2D2545#2D2545

#2D2545 is a dark, muted violet. Relative luminance 0.023; OKLCH L 29.0% C 0.058 H 294.0°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#2D2545
RGBrgb(45, 37, 69)
HSLhsl(255, 30%, 21%)
HSVhsv(255, 46%, 27%)
CMYKcmyk(34.8%, 46.4%, 0%, 72.9%)
CIE-LABlab(17.04, 12.34, -18.83)
CIE-LCHlch(17.04, 22.51, 303.23°)
OKLaboklab(28.97% 0.0235 -0.0527)
OKLCHoklch(28.97% 0.058 294)
XYZxyz(2.8177, 2.3106, 5.9266)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2545 #3D4525
analogous
#252D45 #2D2545 #3D2545
triadic
#2D2545 #452D25 #25452D
tetradic
#2D2545 #45252D #3D4525 #25453D
square
#2D2545 #45252D #3D4525 #25453D
split-complementary
#2D2545 #453D25 #2D4525
monochromatic
#0D0B14 #13101D #2D2545 #473A6D #615095

Accessibility & contrast

On white

14.36
#2D2545 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D2545 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2545
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2545#FFFFFF#000000##FFFFFF
##2D25451.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2A46
Deuteranopia (green-blind)
#1D2944
Tritanopia (blue-blind)
#282B31
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d2545;
/* rgb */ color: rgb(45, 37, 69);
/* oklch */ color: oklch(29.0% 0.058 294.0);
Tailwind
colors: {
  custom: {
    50: '#675f79',
    500: '#2d2545',
    950: '#000000',
  },
}
SCSS
$custom: #2d2545;
$custom-light: #675f79;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2545",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 69
  },
  "hsl": {
    "h": 255,
    "s": 30.189,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28973,
    "c": 0.05773,
    "h": 294
  },
  "luminance": 0.02311
}

Semantic roles & 50–950 ramp

primary
#2D2545
secondary
#6D784E
accent
#C661AD
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060409
muted
#7A797B

Preview Lab

Preview with #2D2545

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

Preview Lab → · Contrast checker → · Palette generator →

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