#2D1889#2D1889

#2D1889 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.171 H 280.0°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#2D1889
RGBrgb(45, 24, 137)
HSLhsl(251, 70%, 32%)
HSVhsv(251, 82%, 54%)
CMYKcmyk(67.2%, 82.5%, 0%, 46.3%)
CIE-LABlab(20.11, 42.58, -58.44)
CIE-LCHlch(20.11, 72.30, 306.08°)
OKLaboklab(33.04% 0.0296 -0.1687)
OKLCHoklch(33.04% 0.171 280)
XYZxyz(5.9227, 3.0168, 23.9322)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1889 #748918
analogous
#183C89 #2D1889 #661889
triadic
#2D1889 #892D18 #18892D
tetradic
#2D1889 #89183C #748918 #188966
square
#2D1889 #89183C #748918 #188966
split-complementary
#2D1889 #896618 #3C8918
monochromatic
#0B0621 #1C0F55 #2D1889 #3E21BD #5C3EDD

Accessibility & contrast

On white

13.10
#2D1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1889
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1889#FFFFFF#000000##FFFFFF
##2D18891.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1889;
/* rgb */ color: rgb(45, 24, 137);
/* oklch */ color: oklch(33.0% 0.171 280.0);
Tailwind
colors: {
  custom: {
    50: '#7459ad',
    500: '#2d1889',
    950: '#000000',
  },
}
SCSS
$custom: #2d1889;
$custom-light: #7459ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1889",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 251.15,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33044,
    "c": 0.17129,
    "h": 280
  },
  "luminance": 0.03017
}

Semantic roles & 50–950 ramp

primary
#2D1889
secondary
#A5BD40
accent
#ED3BCC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1889

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

Preview Lab → · Contrast checker → · Palette generator →

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