#2D1A85#2D1A85

#2D1A85 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.165 H 280.4°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#2D1A85
RGBrgb(45, 26, 133)
HSLhsl(251, 67%, 31%)
HSVhsv(251, 80%, 52%)
CMYKcmyk(66.2%, 80.5%, 0%, 47.8%)
CIE-LABlab(20.00, 40.34, -56.10)
CIE-LCHlch(20.00, 69.10, 305.72°)
OKLaboklab(32.84% 0.0297 -0.1619)
OKLCHoklch(32.84% 0.165 280.4)
XYZxyz(5.6839, 2.9897, 22.4633)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A85 #72851A
analogous
#1A3C85 #2D1A85 #621A85
triadic
#2D1A85 #852D1A #1A852D
tetradic
#2D1A85 #851A3C #72851A #1A8562
square
#2D1A85 #851A3C #72851A #1A8562
split-complementary
#2D1A85 #85621A #3C851A
monochromatic
#0A061F #1C1052 #2D1A85 #3E24B8 #5B40DA

Accessibility & contrast

On white

13.14
#2D1A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1A85
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A85#FFFFFF#000000##FFFFFF
##2D1A851.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1a85;
/* rgb */ color: rgb(45, 26, 133);
/* oklch */ color: oklch(32.8% 0.165 280.4);
Tailwind
colors: {
  custom: {
    50: '#735aaa',
    500: '#2d1a85',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a85;
$custom-light: #735aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a85",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 250.654,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32835,
    "c": 0.16464,
    "h": 280.4
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#2D1A85
secondary
#A3B842
accent
#EA3ECC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1A85

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

Preview Lab → · Contrast checker → · Palette generator →

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