#2D1659#2D1659

#2D1659 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.113 H 293.4°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#2D1659
RGBrgb(45, 22, 89)
HSLhsl(261, 60%, 22%)
HSVhsv(261, 75%, 35%)
CMYKcmyk(49.4%, 75.3%, 0%, 65.1%)
CIE-LABlab(14.70, 28.67, -36.22)
CIE-LCHlch(14.70, 46.19, 308.36°)
OKLaboklab(27.73% 0.0448 -0.1037)
OKLCHoklch(27.73% 0.113 293.4)
XYZxyz(3.1718, 1.8529, 9.6398)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1659 #425916
analogous
#162159 #2D1659 #4F1659
triadic
#2D1659 #592D16 #16592D
tetradic
#2D1659 #591621 #425916 #16594F
square
#2D1659 #591621 #425916 #16594F
split-complementary
#2D1659 #594F16 #215916
monochromatic
#0C0619 #140A28 #2D1659 #46228A #5F2EBB

Accessibility & contrast

On white

15.32
#2D1659 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2D1659 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1659
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1659#FFFFFF#000000##FFFFFF
##2D16591.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#202735
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d1659;
/* rgb */ color: rgb(45, 22, 89);
/* oklch */ color: oklch(27.7% 0.113 293.4);
Tailwind
colors: {
  custom: {
    50: '#6b5589',
    500: '#2d1659',
    950: '#000000',
  },
}
SCSS
$custom: #2d1659;
$custom-light: #6b5589;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1659",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 89
  },
  "hsl": {
    "h": 260.597,
    "s": 60.36,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27725,
    "c": 0.11297,
    "h": 293.4
  },
  "luminance": 0.01853
}

Semantic roles & 50–950 ramp

primary
#2D1659
secondary
#73903B
accent
#E444AD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1659

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

Preview Lab → · Contrast checker → · Palette generator →

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