#2A1574#2A1574

#2A1574 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.149 H 282.9°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#2A1574
RGBrgb(42, 21, 116)
HSLhsl(253, 69%, 27%)
HSVhsv(253, 82%, 45%)
CMYKcmyk(63.8%, 81.9%, 0%, 54.5%)
CIE-LABlab(16.94, 37.21, -50.34)
CIE-LCHlch(16.94, 62.60, 306.48°)
OKLaboklab(30.07% 0.0333 -0.1451)
OKLCHoklch(30.07% 0.149 282.9)
XYZxyz(4.3744, 2.2892, 16.7310)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1574 #5F7415
analogous
#153074 #2A1574 #5A1574
triadic
#2A1574 #742A15 #15742A
tetradic
#2A1574 #741530 #5F7415 #15745A
square
#2A1574 #741530 #5F7415 #15745A
split-complementary
#2A1574 #745A15 #307415
monochromatic
#09051A #170C40 #2A1574 #3D1EA8 #512BD9

Accessibility & contrast

On white

14.40
#2A1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1574
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1574#FFFFFF#000000##FFFFFF
##2A15741.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1574;
/* rgb */ color: rgb(42, 21, 116);
/* oklch */ color: oklch(30.1% 0.149 282.9);
Tailwind
colors: {
  custom: {
    50: '#6e569d',
    500: '#2a1574',
    950: '#000000',
  },
}
SCSS
$custom: #2a1574;
$custom-light: #6e569d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1574",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 253.263,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30065,
    "c": 0.14892,
    "h": 282.9
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#2A1574
secondary
#91AA3B
accent
#EC3CC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1574

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

Preview Lab → · Contrast checker → · Palette generator →

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