#2D1A78#2D1A78

#2D1A78 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.148 H 283.0°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2D1A78
RGBrgb(45, 26, 120)
HSLhsl(252, 64%, 29%)
HSVhsv(252, 78%, 47%)
CMYKcmyk(62.5%, 78.3%, 0%, 52.9%)
CIE-LABlab(18.59, 36.22, -50.17)
CIE-LCHlch(18.59, 61.88, 305.83°)
OKLaboklab(31.43% 0.0334 -0.1446)
OKLCHoklch(31.43% 0.148 283)
XYZxyz(4.8407, 2.6524, 18.0225)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A78 #65781A
analogous
#1A3678 #2D1A78 #5C1A78
triadic
#2D1A78 #782D1A #1A782D
tetradic
#2D1A78 #781A36 #65781A #1A785C
square
#2D1A78 #781A36 #65781A #1A785C
split-complementary
#2D1A78 #785C1A #36781A
monochromatic
#090519 #1A0F46 #2D1A78 #4025AA #5838D4

Accessibility & contrast

On white

13.72
#2D1A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D1A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A78
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A78#FFFFFF#000000##FFFFFF
##2D1A781.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1a78;
/* rgb */ color: rgb(45, 26, 120);
/* oklch */ color: oklch(31.4% 0.148 283.0);
Tailwind
colors: {
  custom: {
    50: '#7059a0',
    500: '#2d1a78',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a78;
$custom-light: #7059a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a78",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 252.128,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31428,
    "c": 0.14844,
    "h": 283
  },
  "luminance": 0.02653
}

Semantic roles & 50–950 ramp

primary
#2D1A78
secondary
#97AC41
accent
#E740C6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D1A78

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

Preview Lab → · Contrast checker → · Palette generator →

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