#2D1A8B#2D1A8B

#2D1A8B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.172 H 279.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2D1A8B
RGBrgb(45, 26, 139)
HSLhsl(250, 68%, 32%)
HSVhsv(250, 81%, 55%)
CMYKcmyk(67.6%, 81.3%, 0%, 45.5%)
CIE-LABlab(20.67, 42.22, -58.76)
CIE-LCHlch(20.67, 72.35, 305.70°)
OKLaboklab(33.5% 0.0279 -0.1697)
OKLCHoklch(33.5% 0.172 279.3)
XYZxyz(6.1103, 3.1603, 24.7091)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A8B #788B1A
analogous
#1A408B #2D1A8B #651A8B
triadic
#2D1A8B #8B2D1A #1A8B2D
tetradic
#2D1A8B #8B1A40 #788B1A #1A8B65
square
#2D1A8B #8B1A40 #788B1A #1A8B65
split-complementary
#2D1A8B #8B651A #408B1A
monochromatic
#0C0724 #1C1057 #2D1A8B #3E24BF #5D43DC

Accessibility & contrast

On white

12.87
#2D1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A8B
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A8B#FFFFFF#000000##FFFFFF
##2D1A8B1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1a8b;
/* rgb */ color: rgb(45, 26, 139);
/* oklch */ color: oklch(33.5% 0.172 279.3);
Tailwind
colors: {
  custom: {
    50: '#745aae',
    500: '#2d1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a8b;
$custom-light: #745aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a8b",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 250.088,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33502,
    "c": 0.17195,
    "h": 279.3
  },
  "luminance": 0.03161
}

Semantic roles & 50–950 ramp

primary
#2D1A8B
secondary
#A9BD44
accent
#EB3CCE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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