#2D1A86#2D1A86

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

Color values

HEX#2D1A86
RGBrgb(45, 26, 134)
HSLhsl(251, 68%, 31%)
HSVhsv(251, 81%, 53%)
CMYKcmyk(66.4%, 80.6%, 0%, 47.5%)
CIE-LABlab(20.11, 40.66, -56.55)
CIE-LCHlch(20.11, 69.65, 305.71°)
OKLaboklab(32.95% 0.0294 -0.1632)
OKLCHoklch(32.95% 0.166 280.2)
XYZxyz(5.7533, 3.0175, 22.8289)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A86 #73861A
analogous
#1A3D86 #2D1A86 #631A86
triadic
#2D1A86 #862D1A #1A862D
tetradic
#2D1A86 #861A3D #73861A #1A8663
square
#2D1A86 #861A3D #73861A #1A8663
split-complementary
#2D1A86 #86631A #3D861A
monochromatic
#0B061F #1C1053 #2D1A86 #3E24B9 #5B40DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1A86#FFFFFF#000000##FFFFFF
##2D1A861.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)
#003489
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1a86;
/* rgb */ color: rgb(45, 26, 134);
/* oklch */ color: oklch(32.9% 0.166 280.2);
Tailwind
colors: {
  custom: {
    50: '#735aaa',
    500: '#2d1a86',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a86;
$custom-light: #735aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a86",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 250.556,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32946,
    "c": 0.16587,
    "h": 280.2
  },
  "luminance": 0.03018
}

Semantic roles & 50–950 ramp

primary
#2D1A86
secondary
#A4B942
accent
#EA3DCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1A86

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

Preview Lab → · Contrast checker → · Palette generator →

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