#2A1547#2A1547

#2A1547 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.090 H 299.3°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#2A1547
RGBrgb(42, 21, 71)
HSLhsl(265, 54%, 18%)
HSVhsv(265, 70%, 28%)
CMYKcmyk(40.8%, 70.4%, 0%, 72.2%)
CIE-LABlab(12.50, 23.01, -27.48)
CIE-LCHlch(12.50, 35.84, 309.95°)
OKLaboklab(25.56% 0.0438 -0.0781)
OKLCHoklch(25.56% 0.09 299.3)
XYZxyz(2.3601, 1.4835, 6.1220)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1547 #324715
analogous
#151947 #2A1547 #431547
triadic
#2A1547 #472A15 #15472A
tetradic
#2A1547 #471519 #324715 #154743
square
#2A1547 #471519 #324715 #154743
split-complementary
#2A1547 #474315 #194715
monochromatic
#0E0718 #0E0718 #2A1547 #462376 #6231A5

Accessibility & contrast

On white

16.19
#2A1547 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A1547 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1547
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1547#FFFFFF#000000##FFFFFF
##2A15471.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#022046
Tritanopia (blue-blind)
#24202B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1547;
/* rgb */ color: rgb(42, 21, 71);
/* oklch */ color: oklch(25.6% 0.090 299.3);
Tailwind
colors: {
  custom: {
    50: '#66537b',
    500: '#2a1547',
    950: '#000000',
  },
}
SCSS
$custom: #2a1547;
$custom-light: #66537b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1547",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 71
  },
  "hsl": {
    "h": 265.2,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25564,
    "c": 0.0896,
    "h": 299.3
  },
  "luminance": 0.01484
}

Semantic roles & 50–950 ramp

primary
#2A1547
secondary
#617F39
accent
#DE4AA0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1547

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

Preview Lab → · Contrast checker → · Palette generator →

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