#2D1389#2D1389

#2D1389 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.5% C 0.175 H 280.5°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#2D1389
RGBrgb(45, 19, 137)
HSLhsl(253, 76%, 31%)
HSVhsv(253, 86%, 54%)
CMYKcmyk(67.2%, 86.1%, 0%, 46.3%)
CIE-LABlab(19.35, 44.82, -59.70)
CIE-LCHlch(19.35, 74.65, 306.90°)
OKLaboklab(32.52% 0.032 -0.1723)
OKLCHoklch(32.52% 0.175 280.5)
XYZxyz(5.8290, 2.8293, 23.9010)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1389 #6F8913
analogous
#133489 #2D1389 #681389
triadic
#2D1389 #892D13 #13892D
tetradic
#2D1389 #891334 #6F8913 #138968
square
#2D1389 #891334 #6F8913 #138968
split-complementary
#2D1389 #896813 #348913
monochromatic
#0A041E #1B0C53 #2D1389 #3F1ABF #5A34E3

Accessibility & contrast

On white

13.41
#2D1389 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D1389 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1389
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1389#FFFFFF#000000##FFFFFF
##2D13891.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1389;
/* rgb */ color: rgb(45, 19, 137);
/* oklch */ color: oklch(32.5% 0.175 280.5);
Tailwind
colors: {
  custom: {
    50: '#7557ad',
    500: '#2d1389',
    950: '#000000',
  },
}
SCSS
$custom: #2d1389;
$custom-light: #7557ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1389",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 137
  },
  "hsl": {
    "h": 253.22,
    "s": 75.641,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32517,
    "c": 0.17525,
    "h": 280.5
  },
  "luminance": 0.0283
}

Semantic roles & 50–950 ramp

primary
#2D1389
secondary
#A1BE3A
accent
#F236C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #2D1389

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

Preview Lab → · Contrast checker → · Palette generator →

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