#2D1351#2D1351

#2D1351 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.107 H 297.9°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#2D1351
RGBrgb(45, 19, 81)
HSLhsl(265, 62%, 20%)
HSVhsv(265, 77%, 32%)
CMYKcmyk(44.4%, 76.5%, 0%, 68.2%)
CIE-LABlab(13.34, 27.97, -33.00)
CIE-LCHlch(13.34, 43.26, 310.28°)
OKLaboklab(26.53% 0.0498 -0.0943)
OKLCHoklch(26.53% 0.107 297.9)
XYZxyz(2.7999, 1.6177, 7.9477)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1351 #375113
analogous
#131851 #2D1351 #4C1351
triadic
#2D1351 #512D13 #13512D
tetradic
#2D1351 #511318 #375113 #13514C
square
#2D1351 #511318 #375113 #13514C
split-complementary
#2D1351 #514C13 #185113
monochromatic
#0E0619 #11071F #2D1351 #491F83 #642AB4

Accessibility & contrast

On white

15.87
#2D1351 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2D1351 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1351
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1351#FFFFFF#000000##FFFFFF
##2D13511.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#242230
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1351;
/* rgb */ color: rgb(45, 19, 81);
/* oklch */ color: oklch(26.5% 0.107 297.9);
Tailwind
colors: {
  custom: {
    50: '#6a5382',
    500: '#2d1351',
    950: '#000000',
  },
}
SCSS
$custom: #2d1351;
$custom-light: #6a5382;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1351",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 81
  },
  "hsl": {
    "h": 265.161,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26528,
    "c": 0.10661,
    "h": 297.9
  },
  "luminance": 0.01618
}

Semantic roles & 50–950 ramp

primary
#2D1351
secondary
#678A36
accent
#E543A1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D1351

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

Preview Lab → · Contrast checker → · Palette generator →

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