#2D1655#2D1655

#2D1655 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.108 H 295.0°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#2D1655
RGBrgb(45, 22, 85)
HSLhsl(262, 59%, 21%)
HSVhsv(262, 74%, 33%)
CMYKcmyk(47.1%, 74.1%, 0%, 66.7%)
CIE-LABlab(14.33, 27.43, -34.11)
CIE-LCHlch(14.33, 43.77, 308.80°)
OKLaboklab(27.35% 0.0456 -0.0975)
OKLCHoklch(27.35% 0.108 295)
XYZxyz(3.0084, 1.7875, 8.7791)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1655 #3E5516
analogous
#161E55 #2D1655 #4C1655
triadic
#2D1655 #552D16 #16552D
tetradic
#2D1655 #55161E #3E5516 #16554C
square
#2D1655 #55161E #3E5516 #16554C
split-complementary
#2D1655 #554C16 #1E5516
monochromatic
#0D0618 #130924 #2D1655 #472386 #602FB6

Accessibility & contrast

On white

15.47
#2D1655 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2D1655 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1655
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1655#FFFFFF#000000##FFFFFF
##2D16551.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002557
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#222533
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d1655;
/* rgb */ color: rgb(45, 22, 85);
/* oklch */ color: oklch(27.4% 0.108 295.0);
Tailwind
colors: {
  custom: {
    50: '#6a5585',
    500: '#2d1655',
    950: '#000000',
  },
}
SCSS
$custom: #2d1655;
$custom-light: #6a5585;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1655",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 85
  },
  "hsl": {
    "h": 261.905,
    "s": 58.879,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2735,
    "c": 0.10764,
    "h": 295
  },
  "luminance": 0.01788
}

Semantic roles & 50–950 ramp

primary
#2D1655
secondary
#6E8C3A
accent
#E246A9
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1655

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

Preview Lab → · Contrast checker → · Palette generator →

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