#2D1150#2D1150

#2D1150 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.108 H 298.9°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#2D1150
RGBrgb(45, 17, 80)
HSLhsl(267, 65%, 19%)
HSVhsv(267, 79%, 31%)
CMYKcmyk(43.7%, 78.8%, 0%, 68.6%)
CIE-LABlab(12.85, 28.79, -33.12)
CIE-LCHlch(12.85, 43.88, 311.00°)
OKLaboklab(26.15% 0.0523 -0.0946)
OKLCHoklch(26.15% 0.108 298.9)
XYZxyz(2.7302, 1.5379, 7.7409)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1150 #345011
analogous
#111550 #2D1150 #4D1150
triadic
#2D1150 #502D11 #11502D
tetradic
#2D1150 #501115 #345011 #11504D
square
#2D1150 #501115 #345011 #11504D
split-complementary
#2D1150 #504D11 #155011
monochromatic
#0E0519 #11061E #2D1150 #491C82 #6626B5

Accessibility & contrast

On white

16.06
#2D1150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2D1150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1150
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1150#FFFFFF#000000##FFFFFF
##2D11501.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#25212F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d1150;
/* rgb */ color: rgb(45, 17, 80);
/* oklch */ color: oklch(26.2% 0.108 298.9);
Tailwind
colors: {
  custom: {
    50: '#6a5282',
    500: '#2d1150',
    950: '#000000',
  },
}
SCSS
$custom: #2d1150;
$custom-light: #6a5282;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1150",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 266.667,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26151,
    "c": 0.10808,
    "h": 298.9
  },
  "luminance": 0.01538
}

Semantic roles & 50–950 ramp

primary
#2D1150
secondary
#638933
accent
#E8409D
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D1150

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

Preview Lab → · Contrast checker → · Palette generator →

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