#2A1D4B#2A1D4B

#2A1D4B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.4% C 0.082 H 293.3°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#2A1D4B
RGBrgb(42, 29, 75)
HSLhsl(257, 44%, 20%)
HSVhsv(257, 61%, 29%)
CMYKcmyk(44%, 61.3%, 0%, 70.6%)
CIE-LABlab(14.84, 18.95, -26.48)
CIE-LCHlch(14.84, 32.57, 305.59°)
OKLaboklab(27.37% 0.0323 -0.0752)
OKLCHoklch(27.37% 0.082 293.3)
XYZxyz(2.6639, 1.8789, 6.8776)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D4B #3E4B1D
analogous
#1D274B #2A1D4B #411D4B
triadic
#2A1D4B #4B2A1D #1D4B2A
tetradic
#2A1D4B #4B1D27 #3E4B1D #1D4B41
square
#2A1D4B #4B1D27 #3E4B1D #1D4B41
split-complementary
#2A1D4B #4B411D #274B1D
monochromatic
#0C0916 #110C1F #2A1D4B #432E77 #5B3FA3

Accessibility & contrast

On white

15.26
#2A1D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A1D4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D4B
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D4B#FFFFFF#000000##FFFFFF
##2A1D4B1.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07264D
Deuteranopia (green-blind)
#0A254A
Tritanopia (blue-blind)
#212730
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1d4b;
/* rgb */ color: rgb(42, 29, 75);
/* oklch */ color: oklch(27.4% 0.082 293.3);
Tailwind
colors: {
  custom: {
    50: '#66597e',
    500: '#2a1d4b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d4b;
$custom-light: #66597e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d4b",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 75
  },
  "hsl": {
    "h": 256.957,
    "s": 44.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27374,
    "c": 0.08188,
    "h": 293.3
  },
  "luminance": 0.01879
}

Semantic roles & 50–950 ramp

primary
#2A1D4B
secondary
#6F8044
accent
#D454B0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A1D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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