#2D1766#2D1766

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

Color values

HEX#2D1766
RGBrgb(45, 23, 102)
HSLhsl(257, 63%, 25%)
HSVhsv(257, 77%, 40%)
CMYKcmyk(55.9%, 77.5%, 0%, 60%)
CIE-LABlab(16.15, 32.17, -42.48)
CIE-LCHlch(16.15, 53.29, 307.13°)
OKLaboklab(29.15% 0.0407 -0.1221)
OKLCHoklch(29.15% 0.129 288.4)
XYZxyz(3.7862, 2.1298, 12.7794)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1766 #506617
analogous
#172966 #2D1766 #551766
triadic
#2D1766 #662D17 #17662D
tetradic
#2D1766 #661729 #506617 #176655
square
#2D1766 #661729 #506617 #176655
split-complementary
#2D1766 #665517 #296617
monochromatic
#0B0619 #170C34 #2D1766 #432298 #592ECA

Accessibility & contrast

On white

14.73
#2D1766 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D1766 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1766
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1766#FFFFFF#000000##FFFFFF
##2D17661.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#172C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1766;
/* rgb */ color: rgb(45, 23, 102);
/* oklch */ color: oklch(29.1% 0.129 288.4);
Tailwind
colors: {
  custom: {
    50: '#6d5692',
    500: '#2d1766',
    950: '#000000',
  },
}
SCSS
$custom: #2d1766;
$custom-light: #6d5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1766",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 256.709,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29146,
    "c": 0.12872,
    "h": 288.4
  },
  "luminance": 0.0213
}

Semantic roles & 50–950 ramp

primary
#2D1766
secondary
#829C3C
accent
#E642B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1766

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

Preview Lab → · Contrast checker → · Palette generator →

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