#2D1855#2D1855

#2D1855 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.105 H 294.3°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#2D1855
RGBrgb(45, 24, 85)
HSLhsl(261, 56%, 21%)
HSVhsv(261, 72%, 33%)
CMYKcmyk(47.1%, 71.8%, 0%, 66.7%)
CIE-LABlab(14.77, 26.21, -33.39)
CIE-LCHlch(14.77, 42.45, 308.13°)
OKLaboklab(27.67% 0.0432 -0.0954)
OKLCHoklch(27.67% 0.105 294.3)
XYZxyz(3.0481, 1.8670, 8.7923)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1855 #405518
analogous
#182255 #2D1855 #4C1855
triadic
#2D1855 #552D18 #18552D
tetradic
#2D1855 #551822 #405518 #18554C
square
#2D1855 #551822 #405518 #18554C
split-complementary
#2D1855 #554C18 #225518
monochromatic
#0D0718 #140B25 #2D1855 #462585 #6033B4

Accessibility & contrast

On white

15.29
#2D1855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2D1855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1855
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1855#FFFFFF#000000##FFFFFF
##2D18551.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002657
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#222734
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d1855;
/* rgb */ color: rgb(45, 24, 85);
/* oklch */ color: oklch(27.7% 0.105 294.3);
Tailwind
colors: {
  custom: {
    50: '#6a5685',
    500: '#2d1855',
    950: '#000000',
  },
}
SCSS
$custom: #2d1855;
$custom-light: #6a5685;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1855",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 260.656,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27668,
    "c": 0.10473,
    "h": 294.3
  },
  "luminance": 0.01867
}

Semantic roles & 50–950 ramp

primary
#2D1855
secondary
#718C3D
accent
#DF49AB
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1855

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

Preview Lab → · Contrast checker → · Palette generator →

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