#2A1648#2A1648

#2A1648 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.089 H 298.3°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#2A1648
RGBrgb(42, 22, 72)
HSLhsl(264, 53%, 18%)
HSVhsv(264, 69%, 28%)
CMYKcmyk(41.7%, 69.4%, 0%, 71.8%)
CIE-LABlab(12.82, 22.68, -27.66)
CIE-LCHlch(12.82, 35.77, 309.36°)
OKLaboklab(25.82% 0.0424 -0.0787)
OKLCHoklch(25.82% 0.089 298.3)
XYZxyz(2.4112, 1.5339, 6.2987)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1648 #344816
analogous
#161B48 #2A1648 #431648
triadic
#2A1648 #482A16 #16482A
tetradic
#2A1648 #48161B #344816 #164843
square
#2A1648 #48161B #344816 #164843
split-complementary
#2A1648 #484316 #1B4816
monochromatic
#0E0717 #0F0819 #2A1648 #452477 #6133A6

Accessibility & contrast

On white

16.07
#2A1648 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1648
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1648#FFFFFF#000000##FFFFFF
##2A16481.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#022147
Tritanopia (blue-blind)
#23212C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1648;
/* rgb */ color: rgb(42, 22, 72);
/* oklch */ color: oklch(25.8% 0.089 298.3);
Tailwind
colors: {
  custom: {
    50: '#66547b',
    500: '#2a1648',
    950: '#000000',
  },
}
SCSS
$custom: #2a1648;
$custom-light: #66547b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1648",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 72
  },
  "hsl": {
    "h": 264,
    "s": 53.191,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25822,
    "c": 0.08936,
    "h": 298.3
  },
  "luminance": 0.01534
}

Semantic roles & 50–950 ramp

primary
#2A1648
secondary
#647F3A
accent
#DD4BA2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2A1648

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

Preview Lab → · Contrast checker → · Palette generator →

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