#2A1351#2A1351

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

Color values

HEX#2A1351
RGBrgb(42, 19, 81)
HSLhsl(262, 62%, 20%)
HSVhsv(262, 77%, 32%)
CMYKcmyk(48.1%, 76.5%, 0%, 68.2%)
CIE-LABlab(12.93, 27.32, -33.68)
CIE-LCHlch(12.93, 43.37, 309.05°)
OKLaboklab(26.15% 0.0448 -0.0964)
OKLCHoklch(26.15% 0.106 295)
XYZxyz(2.6725, 1.5520, 7.9417)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1351 #3A5113
analogous
#131B51 #2A1351 #491351
triadic
#2A1351 #512A13 #13512A
tetradic
#2A1351 #51131B #3A5113 #135149
square
#2A1351 #51131B #3A5113 #135149
split-complementary
#2A1351 #514913 #1B5113
monochromatic
#0D0619 #10071F #2A1351 #441F83 #5D2AB4

Accessibility & contrast

On white

16.03
#2A1351 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1351
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1351#FFFFFF#000000##FFFFFF
##2A13511.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#1F2230
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1351;
/* rgb */ color: rgb(42, 19, 81);
/* oklch */ color: oklch(26.2% 0.106 295.0);
Tailwind
colors: {
  custom: {
    50: '#685382',
    500: '#2a1351',
    950: '#000000',
  },
}
SCSS
$custom: #2a1351;
$custom-light: #685382;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1351",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 81
  },
  "hsl": {
    "h": 262.258,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26151,
    "c": 0.10628,
    "h": 295
  },
  "luminance": 0.01552
}

Semantic roles & 50–950 ramp

primary
#2A1351
secondary
#6B8A36
accent
#E543A9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A1351

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

Preview Lab → · Contrast checker → · Palette generator →

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