#2A1259#2A1259

#2A1259 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.118 H 291.8°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#2A1259
RGBrgb(42, 18, 89)
HSLhsl(260, 66%, 21%)
HSVhsv(260, 80%, 35%)
CMYKcmyk(52.8%, 79.8%, 0%, 65.1%)
CIE-LABlab(13.51, 30.37, -38.17)
CIE-LCHlch(13.51, 48.78, 308.50°)
OKLaboklab(26.8% 0.0439 -0.1095)
OKLCHoklch(26.8% 0.118 291.8)
XYZxyz(2.9738, 1.6460, 9.6103)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1259 #415912
analogous
#121D59 #2A1259 #4D1259
triadic
#2A1259 #592A12 #12592A
tetradic
#2A1259 #59121D #415912 #12594D
square
#2A1259 #59121D #415912 #12594D
split-complementary
#2A1259 #594D12 #1D5912
monochromatic
#0C0519 #120826 #2A1259 #421C8C #5A27BF

Accessibility & contrast

On white

15.80
#2A1259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2A1259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1259
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1259#FFFFFF#000000##FFFFFF
##2A12591.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1259;
/* rgb */ color: rgb(42, 18, 89);
/* oklch */ color: oklch(26.8% 0.118 291.8);
Tailwind
colors: {
  custom: {
    50: '#695289',
    500: '#2a1259',
    950: '#000000',
  },
}
SCSS
$custom: #2a1259;
$custom-light: #695289;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1259",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 260.282,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26796,
    "c": 0.11803,
    "h": 291.8
  },
  "luminance": 0.01646
}

Semantic roles & 50–950 ramp

primary
#2A1259
secondary
#729235
accent
#E93FB0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1259

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

Preview Lab → · Contrast checker → · Palette generator →

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