#2D1A7E#2D1A7E

#2D1A7E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.156 H 281.7°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#2D1A7E
RGBrgb(45, 26, 126)
HSLhsl(251, 66%, 30%)
HSVhsv(251, 79%, 49%)
CMYKcmyk(64.3%, 79.4%, 0%, 50.6%)
CIE-LABlab(19.24, 38.13, -52.94)
CIE-LCHlch(19.24, 65.24, 305.77°)
OKLaboklab(32.07% 0.0318 -0.1527)
OKLCHoklch(32.07% 0.156 281.7)
XYZxyz(5.2163, 2.8027, 20.0007)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A7E #6B7E1A
analogous
#1A397E #2D1A7E #5F1A7E
triadic
#2D1A7E #7E2D1A #1A7E2D
tetradic
#2D1A7E #7E1A39 #6B7E1A #1A7E5F
square
#2D1A7E #7E1A39 #6B7E1A #1A7E5F
split-complementary
#2D1A7E #7E5F1A #397E1A
monochromatic
#090519 #1B104B #2D1A7E #3F24B1 #593CD7

Accessibility & contrast

On white

13.46
#2D1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A7E
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A7E#FFFFFF#000000##FFFFFF
##2D1A7E1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1a7e;
/* rgb */ color: rgb(45, 26, 126);
/* oklch */ color: oklch(32.1% 0.156 281.7);
Tailwind
colors: {
  custom: {
    50: '#7259a4',
    500: '#2d1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a7e;
$custom-light: #7259a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a7e",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 251.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3207,
    "c": 0.15598,
    "h": 281.7
  },
  "luminance": 0.02803
}

Semantic roles & 50–950 ramp

primary
#2D1A7E
secondary
#9DB242
accent
#E93FC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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