#2D1989#2D1989

#2D1989 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.170 H 279.8°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#2D1989
RGBrgb(45, 25, 137)
HSLhsl(251, 69%, 32%)
HSVhsv(251, 82%, 54%)
CMYKcmyk(67.2%, 81.8%, 0%, 46.3%)
CIE-LABlab(20.28, 42.09, -58.16)
CIE-LCHlch(20.28, 71.80, 305.89°)
OKLaboklab(33.16% 0.0291 -0.1679)
OKLCHoklch(33.16% 0.17 279.8)
XYZxyz(5.9437, 3.0588, 23.9392)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1989 #758919
analogous
#193D89 #2D1989 #651989
triadic
#2D1989 #892D19 #19892D
tetradic
#2D1989 #89193D #758919 #198965
square
#2D1989 #89193D #758919 #198965
split-complementary
#2D1989 #896519 #3D8919
monochromatic
#0B0621 #1C1055 #2D1989 #3E22BD #5C40DC

Accessibility & contrast

On white

13.03
#2D1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1989
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1989#FFFFFF#000000##FFFFFF
##2D19891.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1989;
/* rgb */ color: rgb(45, 25, 137);
/* oklch */ color: oklch(33.2% 0.170 279.8);
Tailwind
colors: {
  custom: {
    50: '#745aad',
    500: '#2d1989',
    950: '#000000',
  },
}
SCSS
$custom: #2d1989;
$custom-light: #745aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1989",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 250.714,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3316,
    "c": 0.17042,
    "h": 279.8
  },
  "luminance": 0.03059
}

Semantic roles & 50–950 ramp

primary
#2D1989
secondary
#A6BC41
accent
#EC3CCD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1989

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

Preview Lab → · Contrast checker → · Palette generator →

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