#2D1650#2D1650

#2D1650 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.101 H 297.3°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#2D1650
RGBrgb(45, 22, 80)
HSLhsl(264, 57%, 20%)
HSVhsv(264, 73%, 31%)
CMYKcmyk(43.7%, 72.5%, 0%, 68.6%)
CIE-LABlab(13.89, 25.89, -31.42)
CIE-LCHlch(13.89, 40.72, 309.49°)
OKLaboklab(26.9% 0.0464 -0.0896)
OKLCHoklch(26.9% 0.101 297.3)
XYZxyz(2.8167, 1.7108, 7.7697)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1650 #395016
analogous
#161C50 #2D1650 #4A1650
triadic
#2D1650 #502D16 #16502D
tetradic
#2D1650 #50161C #395016 #16504A
square
#2D1650 #50161C #395016 #16504A
split-complementary
#2D1650 #504A16 #1C5016
monochromatic
#0D0718 #120920 #2D1650 #482380 #6330B0

Accessibility & contrast

On white

15.65
#2D1650 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2D1650 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1650
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1650#FFFFFF#000000##FFFFFF
##2D16501.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#242430
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d1650;
/* rgb */ color: rgb(45, 22, 80);
/* oklch */ color: oklch(26.9% 0.101 297.3);
Tailwind
colors: {
  custom: {
    50: '#695582',
    500: '#2d1650',
    950: '#000000',
  },
}
SCSS
$custom: #2d1650;
$custom-light: #695582;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1650",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 80
  },
  "hsl": {
    "h": 263.793,
    "s": 56.863,
    "l": 20
  },
  "oklch": {
    "l": 0.26896,
    "c": 0.1009,
    "h": 297.3
  },
  "luminance": 0.01711
}

Semantic roles & 50–950 ramp

primary
#2D1650
secondary
#69873A
accent
#E048A4
background
#F6F5F8
surface
#EBE8EF
border
#C6C4CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2D1650

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

Preview Lab → · Contrast checker → · Palette generator →

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