#2A1450#2A1450

#2A1450 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.104 H 295.1°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2A1450
RGBrgb(42, 20, 80)
HSLhsl(262, 60%, 20%)
HSVhsv(262, 75%, 31%)
CMYKcmyk(47.5%, 75%, 0%, 68.6%)
CIE-LABlab(13.06, 26.42, -32.79)
CIE-LCHlch(13.06, 42.11, 308.86°)
OKLaboklab(26.21% 0.0439 -0.0938)
OKLCHoklch(26.21% 0.104 295.1)
XYZxyz(2.6526, 1.5717, 7.7515)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1450 #3A5014
analogous
#141C50 #2A1450 #481450
triadic
#2A1450 #502A14 #14502A
tetradic
#2A1450 #50141C #3A5014 #145048
square
#2A1450 #50141C #3A5014 #145048
split-complementary
#2A1450 #504814 #1C5014
monochromatic
#0D0618 #10081F #2A1450 #442081 #5D2CB2

Accessibility & contrast

On white

15.98
#2A1450 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2A1450 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1450
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1450#FFFFFF#000000##FFFFFF
##2A14501.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#202330
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a1450;
/* rgb */ color: rgb(42, 20, 80);
/* oklch */ color: oklch(26.2% 0.104 295.1);
Tailwind
colors: {
  custom: {
    50: '#685382',
    500: '#2a1450',
    950: '#000000',
  },
}
SCSS
$custom: #2a1450;
$custom-light: #685382;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1450",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 80
  },
  "hsl": {
    "h": 262,
    "s": 60,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26209,
    "c": 0.10353,
    "h": 295.1
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#2A1450
secondary
#6B8838
accent
#E345A9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A1450

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

Preview Lab → · Contrast checker → · Palette generator →

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