#2A1459#2A1459

#2A1459 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.116 H 291.3°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#2A1459
RGBrgb(42, 20, 89)
HSLhsl(259, 63%, 21%)
HSVhsv(259, 78%, 35%)
CMYKcmyk(52.8%, 77.5%, 0%, 65.1%)
CIE-LABlab(13.91, 29.24, -37.52)
CIE-LCHlch(13.91, 47.57, 307.93°)
OKLaboklab(27.08% 0.0419 -0.1076)
OKLCHoklch(27.08% 0.116 291.3)
XYZxyz(3.0077, 1.7137, 9.6216)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1459 #435914
analogous
#142159 #2A1459 #4D1459
triadic
#2A1459 #592A14 #14592A
tetradic
#2A1459 #591421 #435914 #14594D
square
#2A1459 #591421 #435914 #14594D
split-complementary
#2A1459 #594D14 #215914
monochromatic
#0C0619 #120927 #2A1459 #421F8B #592ABD

Accessibility & contrast

On white

15.64
#2A1459 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A1459 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1459
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1459#FFFFFF#000000##FFFFFF
##2A14591.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245B
Deuteranopia (green-blind)
#002258
Tritanopia (blue-blind)
#1B2635
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1459;
/* rgb */ color: rgb(42, 20, 89);
/* oklch */ color: oklch(27.1% 0.116 291.3);
Tailwind
colors: {
  custom: {
    50: '#695489',
    500: '#2a1459',
    950: '#000000',
  },
}
SCSS
$custom: #2a1459;
$custom-light: #695489;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1459",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 89
  },
  "hsl": {
    "h": 259.13,
    "s": 63.303,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27078,
    "c": 0.11553,
    "h": 291.3
  },
  "luminance": 0.01714
}

Semantic roles & 50–950 ramp

primary
#2A1459
secondary
#759138
accent
#E641B2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2A1459

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

Preview Lab → · Contrast checker → · Palette generator →

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