#2A1575#2A1575

#2A1575 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.150 H 282.7°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#2A1575
RGBrgb(42, 21, 117)
HSLhsl(253, 70%, 27%)
HSVhsv(253, 82%, 46%)
CMYKcmyk(64.1%, 82.1%, 0%, 54.1%)
CIE-LABlab(17.05, 37.53, -50.80)
CIE-LCHlch(17.05, 63.15, 306.46°)
OKLaboklab(30.18% 0.033 -0.1465)
OKLCHoklch(30.18% 0.15 282.7)
XYZxyz(4.4329, 2.3126, 17.0390)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1575 #607515
analogous
#153075 #2A1575 #5A1575
triadic
#2A1575 #752A15 #15752A
tetradic
#2A1575 #751530 #607515 #15755A
square
#2A1575 #751530 #607515 #15755A
split-complementary
#2A1575 #755A15 #307515
monochromatic
#09051A #170C41 #2A1575 #3D1EA9 #512BD9

Accessibility & contrast

On white

14.36
#2A1575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1575
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1575#FFFFFF#000000##FFFFFF
##2A15751.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1575;
/* rgb */ color: rgb(42, 21, 117);
/* oklch */ color: oklch(30.2% 0.150 282.7);
Tailwind
colors: {
  custom: {
    50: '#6f569e',
    500: '#2a1575',
    950: '#000000',
  },
}
SCSS
$custom: #2a1575;
$custom-light: #6f569e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1575",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 253.125,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30177,
    "c": 0.15016,
    "h": 282.7
  },
  "luminance": 0.02313
}

Semantic roles & 50–950 ramp

primary
#2A1575
secondary
#92AB3B
accent
#EC3BC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1575

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

Preview Lab → · Contrast checker → · Palette generator →

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