#2A1649#2A1649

#2A1649 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.091 H 297.8°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#2A1649
RGBrgb(42, 22, 73)
HSLhsl(264, 54%, 19%)
HSVhsv(264, 70%, 29%)
CMYKcmyk(42.5%, 69.9%, 0%, 71.4%)
CIE-LABlab(12.90, 22.99, -28.22)
CIE-LCHlch(12.90, 36.40, 309.17°)
OKLaboklab(25.91% 0.0423 -0.0803)
OKLCHoklch(25.91% 0.091 297.8)
XYZxyz(2.4440, 1.5471, 6.4719)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1649 #354916
analogous
#161B49 #2A1649 #431649
triadic
#2A1649 #492A16 #16492A
tetradic
#2A1649 #49161B #354916 #164943
square
#2A1649 #49161B #354916 #164943
split-complementary
#2A1649 #494316 #1B4916
monochromatic
#0E0718 #0F081A #2A1649 #452478 #6032A7

Accessibility & contrast

On white

16.04
#2A1649 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2A1649 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1649
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1649#FFFFFF#000000##FFFFFF
##2A16491.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214B
Deuteranopia (green-blind)
#012148
Tritanopia (blue-blind)
#23212D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1649;
/* rgb */ color: rgb(42, 22, 73);
/* oklch */ color: oklch(25.9% 0.091 297.8);
Tailwind
colors: {
  custom: {
    50: '#66547c',
    500: '#2a1649',
    950: '#000000',
  },
}
SCSS
$custom: #2a1649;
$custom-light: #66547c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1649",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 73
  },
  "hsl": {
    "h": 263.529,
    "s": 53.684,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25908,
    "c": 0.09078,
    "h": 297.8
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#2A1649
secondary
#65803A
accent
#DD4BA4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2A1649

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

Preview Lab → · Contrast checker → · Palette generator →

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