#2A1350#2A1350

#2A1350 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.105 H 295.4°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#2A1350
RGBrgb(42, 19, 80)
HSLhsl(263, 62%, 19%)
HSVhsv(263, 76%, 31%)
CMYKcmyk(47.5%, 76.3%, 0%, 68.6%)
CIE-LABlab(12.84, 27.01, -33.14)
CIE-LCHlch(12.84, 42.76, 309.18°)
OKLaboklab(26.06% 0.0451 -0.0948)
OKLCHoklch(26.06% 0.105 295.4)
XYZxyz(2.6353, 1.5371, 7.7457)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1350 #395013
analogous
#131B50 #2A1350 #491350
triadic
#2A1350 #502A13 #13502A
tetradic
#2A1350 #50131B #395013 #135049
square
#2A1350 #50131B #395013 #135049
split-complementary
#2A1350 #504913 #1B5013
monochromatic
#0D0619 #10071F #2A1350 #441F81 #5E2AB3

Accessibility & contrast

On white

16.06
#2A1350 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1350
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1350#FFFFFF#000000##FFFFFF
##2A13501.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00204F
Tritanopia (blue-blind)
#202230
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1350;
/* rgb */ color: rgb(42, 19, 80);
/* oklch */ color: oklch(26.1% 0.105 295.4);
Tailwind
colors: {
  custom: {
    50: '#685382',
    500: '#2a1350',
    950: '#000000',
  },
}
SCSS
$custom: #2a1350;
$custom-light: #685382;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1350",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 80
  },
  "hsl": {
    "h": 262.623,
    "s": 61.616,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26056,
    "c": 0.10495,
    "h": 295.4
  },
  "luminance": 0.01537
}

Semantic roles & 50–950 ramp

primary
#2A1350
secondary
#6A8936
accent
#E543A8
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A1350

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

Preview Lab → · Contrast checker → · Palette generator →

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