#2A1457#2A1457

#2A1457 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.113 H 292.1°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#2A1457
RGBrgb(42, 20, 87)
HSLhsl(260, 63%, 21%)
HSVhsv(260, 77%, 34%)
CMYKcmyk(51.7%, 77%, 0%, 65.9%)
CIE-LABlab(13.71, 28.61, -36.49)
CIE-LCHlch(13.71, 46.37, 308.10°)
OKLaboklab(26.88% 0.0424 -0.1046)
OKLCHoklch(26.88% 0.113 292.1)
XYZxyz(2.9248, 1.6806, 9.1853)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1457 #415714
analogous
#141F57 #2A1457 #4B1457
triadic
#2A1457 #572A14 #14572A
tetradic
#2A1457 #57141F #415714 #14574B
square
#2A1457 #57141F #415714 #14574B
split-complementary
#2A1457 #574B14 #1F5714
monochromatic
#0C0619 #120925 #2A1457 #421F89 #5A2BBB

Accessibility & contrast

On white

15.72
#2A1457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1457
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1457#FFFFFF#000000##FFFFFF
##2A14571.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#1C2534
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1457;
/* rgb */ color: rgb(42, 20, 87);
/* oklch */ color: oklch(26.9% 0.113 292.1);
Tailwind
colors: {
  custom: {
    50: '#695487',
    500: '#2a1457',
    950: '#000000',
  },
}
SCSS
$custom: #2a1457;
$custom-light: #695487;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1457",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 87
  },
  "hsl": {
    "h": 259.701,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2688,
    "c": 0.11289,
    "h": 292.1
  },
  "luminance": 0.01681
}

Semantic roles & 50–950 ramp

primary
#2A1457
secondary
#728F38
accent
#E642B0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1457

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

Preview Lab → · Contrast checker → · Palette generator →

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