#2A1659#2A1659

#2A1659 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.113 H 290.7°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#2A1659
RGBrgb(42, 22, 89)
HSLhsl(258, 60%, 22%)
HSVhsv(258, 75%, 35%)
CMYKcmyk(52.8%, 75.3%, 0%, 65.1%)
CIE-LABlab(14.33, 28.06, -36.83)
CIE-LCHlch(14.33, 46.30, 307.31°)
OKLaboklab(27.38% 0.0399 -0.1056)
OKLCHoklch(27.38% 0.113 290.7)
XYZxyz(3.0444, 1.7872, 9.6338)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1659 #455916
analogous
#162459 #2A1659 #4C1659
triadic
#2A1659 #592A16 #16592A
tetradic
#2A1659 #591624 #455916 #16594C
square
#2A1659 #591624 #455916 #16594C
split-complementary
#2A1659 #594C16 #245916
monochromatic
#0C0619 #130A28 #2A1659 #41228A #582EBB

Accessibility & contrast

On white

15.47
#2A1659 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A1659 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1659
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1659#FFFFFF#000000##FFFFFF
##2A16591.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#1A2735
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1659;
/* rgb */ color: rgb(42, 22, 89);
/* oklch */ color: oklch(27.4% 0.113 290.7);
Tailwind
colors: {
  custom: {
    50: '#695589',
    500: '#2a1659',
    950: '#000000',
  },
}
SCSS
$custom: #2a1659;
$custom-light: #695589;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1659",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 89
  },
  "hsl": {
    "h": 257.91,
    "s": 60.36,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27378,
    "c": 0.11291,
    "h": 290.7
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#2A1659
secondary
#77903B
accent
#E444B4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2A1659

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

Preview Lab → · Contrast checker → · Palette generator →

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