#2D1A89#2D1A89

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

Color values

HEX#2D1A89
RGBrgb(45, 26, 137)
HSLhsl(250, 68%, 32%)
HSVhsv(250, 81%, 54%)
CMYKcmyk(67.2%, 81%, 0%, 46.3%)
CIE-LABlab(20.45, 41.60, -57.88)
CIE-LCHlch(20.45, 71.28, 305.70°)
OKLaboklab(33.28% 0.0285 -0.1671)
OKLCHoklch(33.28% 0.17 279.7)
XYZxyz(5.9655, 3.1023, 23.9465)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A89 #76891A
analogous
#1A3F89 #2D1A89 #651A89
triadic
#2D1A89 #892D1A #1A892D
tetradic
#2D1A89 #891A3F #76891A #1A8965
square
#2D1A89 #891A3F #76891A #1A8965
split-complementary
#2D1A89 #89651A #3F891A
monochromatic
#0B0622 #1C1056 #2D1A89 #3E24BC #5C42DB

Accessibility & contrast

On white

12.96
#2D1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2D1A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A89
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A89#FFFFFF#000000##FFFFFF
##2D1A891.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1a89;
/* rgb */ color: rgb(45, 26, 137);
/* oklch */ color: oklch(33.3% 0.170 279.7);
Tailwind
colors: {
  custom: {
    50: '#745aad',
    500: '#2d1a89',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a89;
$custom-light: #745aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a89",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 250.27,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33279,
    "c": 0.16953,
    "h": 279.7
  },
  "luminance": 0.03103
}

Semantic roles & 50–950 ramp

primary
#2D1A89
secondary
#A7BC43
accent
#EB3DCD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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