#2A1959#2A1959

#2A1959 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.109 H 289.6°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#2A1959
RGBrgb(42, 25, 89)
HSLhsl(256, 56%, 22%)
HSVhsv(256, 72%, 35%)
CMYKcmyk(52.8%, 71.9%, 0%, 65.1%)
CIE-LABlab(15.00, 26.22, -35.73)
CIE-LCHlch(15.00, 44.32, 306.27°)
OKLaboklab(27.86% 0.0366 -0.1024)
OKLCHoklch(27.86% 0.109 289.6)
XYZxyz(3.1051, 1.9086, 9.6541)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1959 #485919
analogous
#192859 #2A1959 #4A1959
triadic
#2A1959 #592A19 #19592A
tetradic
#2A1959 #591928 #485919 #19594A
square
#2A1959 #591928 #485919 #19594A
split-complementary
#2A1959 #594A19 #285919
monochromatic
#0B0718 #130C29 #2A1959 #412689 #5734B9

Accessibility & contrast

On white

15.20
#2A1959 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A1959 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1959
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1959#FFFFFF#000000##FFFFFF
##2A19591.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#1A2936
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a1959;
/* rgb */ color: rgb(42, 25, 89);
/* oklch */ color: oklch(27.9% 0.109 289.6);
Tailwind
colors: {
  custom: {
    50: '#695788',
    500: '#2a1959',
    950: '#000000',
  },
}
SCSS
$custom: #2a1959;
$custom-light: #695788;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1959",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 89
  },
  "hsl": {
    "h": 255.938,
    "s": 56.14,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27859,
    "c": 0.10875,
    "h": 289.6
  },
  "luminance": 0.01909
}

Semantic roles & 50–950 ramp

primary
#2A1959
secondary
#7A8F3E
accent
#DF48B7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2A1959

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

Preview Lab → · Contrast checker → · Palette generator →

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