#2D1665#2D1665

#2D1665 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.129 H 289.0°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#2D1665
RGBrgb(45, 22, 101)
HSLhsl(257, 64%, 24%)
HSVhsv(257, 78%, 40%)
CMYKcmyk(55.4%, 78.2%, 0%, 60.4%)
CIE-LABlab(15.86, 32.41, -42.31)
CIE-LCHlch(15.86, 53.30, 307.45°)
OKLaboklab(28.9% 0.0419 -0.1216)
OKLCHoklch(28.9% 0.129 289)
XYZxyz(3.7174, 2.0711, 12.5133)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1665 #4E6516
analogous
#162765 #2D1665 #551665
triadic
#2D1665 #652D16 #16652D
tetradic
#2D1665 #651627 #4E6516 #166555
square
#2D1665 #651627 #4E6516 #166555
split-complementary
#2D1665 #655516 #276516
monochromatic
#0B0519 #170B33 #2D1665 #432197 #5A2CCA

Accessibility & contrast

On white

14.85
#2D1665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2D1665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1665
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1665#FFFFFF#000000##FFFFFF
##2D16651.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#182B3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1665;
/* rgb */ color: rgb(45, 22, 101);
/* oklch */ color: oklch(28.9% 0.129 289.0);
Tailwind
colors: {
  custom: {
    50: '#6d5692',
    500: '#2d1665',
    950: '#000000',
  },
}
SCSS
$custom: #2d1665;
$custom-light: #6d5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1665",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 257.468,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28905,
    "c": 0.12863,
    "h": 289
  },
  "luminance": 0.02071
}

Semantic roles & 50–950 ramp

primary
#2D1665
secondary
#809C3B
accent
#E741B7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1665

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

Preview Lab → · Contrast checker → · Palette generator →

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