#2D1350#2D1350

#2D1350 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.105 H 298.4°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#2D1350
RGBrgb(45, 19, 80)
HSLhsl(266, 62%, 19%)
HSVhsv(266, 76%, 31%)
CMYKcmyk(43.7%, 76.3%, 0%, 68.6%)
CIE-LABlab(13.25, 27.67, -32.47)
CIE-LCHlch(13.25, 42.66, 310.44°)
OKLaboklab(26.44% 0.05 -0.0927)
OKLCHoklch(26.44% 0.105 298.4)
XYZxyz(2.7627, 1.6028, 7.7517)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1350 #365013
analogous
#131850 #2D1350 #4C1350
triadic
#2D1350 #502D13 #13502D
tetradic
#2D1350 #501318 #365013 #13504C
square
#2D1350 #501318 #365013 #13504C
split-complementary
#2D1350 #504C13 #185013
monochromatic
#0E0619 #11071F #2D1350 #491F81 #652AB3

Accessibility & contrast

On white

15.90
#2D1350 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1350
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1350#FFFFFF#000000##FFFFFF
##2D13501.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#252230
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1350;
/* rgb */ color: rgb(45, 19, 80);
/* oklch */ color: oklch(26.4% 0.105 298.4);
Tailwind
colors: {
  custom: {
    50: '#6a5382',
    500: '#2d1350',
    950: '#000000',
  },
}
SCSS
$custom: #2d1350;
$custom-light: #6a5382;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1350",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 80
  },
  "hsl": {
    "h": 265.574,
    "s": 61.616,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26436,
    "c": 0.10531,
    "h": 298.4
  },
  "luminance": 0.01603
}

Semantic roles & 50–950 ramp

primary
#2D1350
secondary
#658936
accent
#E543A0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D1350

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

Preview Lab → · Contrast checker → · Palette generator →

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