#2A1583#2A1583

#2A1583 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.167 H 279.8°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#2A1583
RGBrgb(42, 21, 131)
HSLhsl(251, 72%, 30%)
HSVhsv(251, 84%, 51%)
CMYKcmyk(67.9%, 84%, 0%, 48.6%)
CIE-LABlab(18.66, 41.86, -57.08)
CIE-LCHlch(18.66, 70.78, 306.26°)
OKLaboklab(31.77% 0.0284 -0.1648)
OKLCHoklch(31.77% 0.167 279.8)
XYZxyz(5.3184, 2.6668, 21.7028)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1583 #6E8315
analogous
#153783 #2A1583 #611583
triadic
#2A1583 #832A15 #15832A
tetradic
#2A1583 #831537 #6E8315 #158361
square
#2A1583 #831537 #6E8315 #158361
split-complementary
#2A1583 #836115 #378315
monochromatic
#08041A #190D4E #2A1583 #3B1DB8 #5534DE

Accessibility & contrast

On white

13.70
#2A1583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2A1583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1583
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1583#FFFFFF#000000##FFFFFF
##2A15831.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002981
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1583;
/* rgb */ color: rgb(42, 21, 131);
/* oklch */ color: oklch(31.8% 0.167 279.8);
Tailwind
colors: {
  custom: {
    50: '#7257a8',
    500: '#2a1583',
    950: '#000000',
  },
}
SCSS
$custom: #2a1583;
$custom-light: #7257a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1583",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 131
  },
  "hsl": {
    "h": 251.455,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31766,
    "c": 0.16721,
    "h": 279.8
  },
  "luminance": 0.02667
}

Semantic roles & 50–950 ramp

primary
#2A1583
secondary
#A0B83C
accent
#EF39CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1583

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

Preview Lab → · Contrast checker → · Palette generator →

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