#2D1A7B#2D1A7B

#2D1A7B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.152 H 282.4°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2D1A7B
RGBrgb(45, 26, 123)
HSLhsl(252, 65%, 29%)
HSVhsv(252, 79%, 48%)
CMYKcmyk(63.4%, 78.9%, 0%, 51.8%)
CIE-LABlab(18.91, 37.18, -51.56)
CIE-LCHlch(18.91, 63.57, 305.79°)
OKLaboklab(31.75% 0.0326 -0.1487)
OKLCHoklch(31.75% 0.152 282.4)
XYZxyz(5.0256, 2.7264, 18.9965)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A7B #687B1A
analogous
#1A377B #2D1A7B #5E1A7B
triadic
#2D1A7B #7B2D1A #1A7B2D
tetradic
#2D1A7B #7B1A37 #687B1A #1A7B5E
square
#2D1A7B #7B1A37 #687B1A #1A7B5E
split-complementary
#2D1A7B #7B5E1A #377B1A
monochromatic
#090519 #1B0F48 #2D1A7B #3F25AE #583AD5

Accessibility & contrast

On white

13.59
#2D1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2D1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A7B
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A7B#FFFFFF#000000##FFFFFF
##2D1A7B1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1a7b;
/* rgb */ color: rgb(45, 26, 123);
/* oklch */ color: oklch(31.7% 0.152 282.4);
Tailwind
colors: {
  custom: {
    50: '#7159a2',
    500: '#2d1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a7b;
$custom-light: #7159a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a7b",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 251.753,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31748,
    "c": 0.15222,
    "h": 282.4
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#2D1A7B
secondary
#9AAF42
accent
#E840C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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