#2D1789#2D1789

#2D1789 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.172 H 280.1°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#2D1789
RGBrgb(45, 23, 137)
HSLhsl(252, 71%, 31%)
HSVhsv(252, 83%, 54%)
CMYKcmyk(67.2%, 83.2%, 0%, 46.3%)
CIE-LABlab(19.95, 43.05, -58.71)
CIE-LCHlch(19.95, 72.80, 306.25°)
OKLaboklab(32.93% 0.0301 -0.1695)
OKLCHoklch(32.93% 0.172 280.1)
XYZxyz(5.9025, 2.9763, 23.9255)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1789 #738917
analogous
#173A89 #2D1789 #661789
triadic
#2D1789 #892D17 #17892D
tetradic
#2D1789 #89173A #738917 #178966
square
#2D1789 #89173A #738917 #178966
split-complementary
#2D1789 #896617 #3A8917
monochromatic
#0B0520 #1C0E55 #2D1789 #3E20BD #5B3CDE

Accessibility & contrast

On white

13.16
#2D1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2D1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1789
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1789#FFFFFF#000000##FFFFFF
##2D17891.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1789;
/* rgb */ color: rgb(45, 23, 137);
/* oklch */ color: oklch(32.9% 0.172 280.1);
Tailwind
colors: {
  custom: {
    50: '#7459ad',
    500: '#2d1789',
    950: '#000000',
  },
}
SCSS
$custom: #2d1789;
$custom-light: #7459ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1789",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 251.579,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32932,
    "c": 0.17213,
    "h": 280.1
  },
  "luminance": 0.02977
}

Semantic roles & 50–950 ramp

primary
#2D1789
secondary
#A4BD3F
accent
#EE3ACB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1789

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

Preview Lab → · Contrast checker → · Palette generator →

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