#2A1647#2A1647

#2A1647 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.088 H 298.9°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#2A1647
RGBrgb(42, 22, 71)
HSLhsl(264, 53%, 18%)
HSVhsv(264, 69%, 28%)
CMYKcmyk(40.8%, 69%, 0%, 72.2%)
CIE-LABlab(12.74, 22.37, -27.09)
CIE-LCHlch(12.74, 35.14, 309.55°)
OKLaboklab(25.74% 0.0425 -0.077)
OKLCHoklch(25.74% 0.088 298.9)
XYZxyz(2.3788, 1.5210, 6.1283)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1647 #334716
analogous
#161A47 #2A1647 #421647
triadic
#2A1647 #472A16 #16472A
tetradic
#2A1647 #47161A #334716 #164742
square
#2A1647 #47161A #334716 #164742
split-complementary
#2A1647 #474216 #1A4716
monochromatic
#0E0717 #0E0818 #2A1647 #462476 #6133A4

Accessibility & contrast

On white

16.10
#2A1647 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1647
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1647#FFFFFF#000000##FFFFFF
##2A16471.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#032146
Tritanopia (blue-blind)
#23212C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1647;
/* rgb */ color: rgb(42, 22, 71);
/* oklch */ color: oklch(25.7% 0.088 298.9);
Tailwind
colors: {
  custom: {
    50: '#66547b',
    500: '#2a1647',
    950: '#000000',
  },
}
SCSS
$custom: #2a1647;
$custom-light: #66547b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1647",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 71
  },
  "hsl": {
    "h": 264.49,
    "s": 52.688,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25737,
    "c": 0.08794,
    "h": 298.9
  },
  "luminance": 0.01521
}

Semantic roles & 50–950 ramp

primary
#2A1647
secondary
#637E3A
accent
#DC4CA1
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2A1647

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

Preview Lab → · Contrast checker → · Palette generator →

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