#2A1B59#2A1B59

#2A1B59 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.106 H 288.9°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#2A1B59
RGBrgb(42, 27, 89)
HSLhsl(255, 53%, 23%)
HSVhsv(255, 70%, 35%)
CMYKcmyk(52.8%, 69.7%, 0%, 65.1%)
CIE-LABlab(15.47, 24.94, -34.96)
CIE-LCHlch(15.47, 42.95, 305.50°)
OKLaboklab(28.2% 0.0343 -0.1002)
OKLCHoklch(28.2% 0.106 288.9)
XYZxyz(3.1494, 1.9972, 9.6688)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B59 #4A591B
analogous
#1B2B59 #2A1B59 #491B59
triadic
#2A1B59 #592A1B #1B592A
tetradic
#2A1B59 #591B2B #4A591B #1B5949
square
#2A1B59 #591B2B #4A591B #1B5949
split-complementary
#2A1B59 #59491B #2B591B
monochromatic
#0B0717 #140D2A #2A1B59 #402988 #5637B7

Accessibility & contrast

On white

15.01
#2A1B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2A1B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B59
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B59#FFFFFF#000000##FFFFFF
##2A1B591.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#1A2A37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1b59;
/* rgb */ color: rgb(42, 27, 89);
/* oklch */ color: oklch(28.2% 0.106 288.9);
Tailwind
colors: {
  custom: {
    50: '#695888',
    500: '#2a1b59',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b59;
$custom-light: #695888;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b59",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 254.516,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.282,
    "c": 0.10587,
    "h": 288.9
  },
  "luminance": 0.01997
}

Semantic roles & 50–950 ramp

primary
#2A1B59
secondary
#7C8F41
accent
#DD4BBA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2A1B59

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

Preview Lab → · Contrast checker → · Palette generator →

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