#2A1545#2A1545

#2A1545 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.087 H 300.5°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#2A1545
RGBrgb(42, 21, 69)
HSLhsl(266, 53%, 18%)
HSVhsv(266, 70%, 27%)
CMYKcmyk(39.1%, 69.6%, 0%, 72.9%)
CIE-LABlab(12.34, 22.40, -26.34)
CIE-LCHlch(12.34, 34.58, 310.38°)
OKLaboklab(25.4% 0.044 -0.0748)
OKLCHoklch(25.4% 0.087 300.5)
XYZxyz(2.2969, 1.4582, 5.7895)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1545 #304515
analogous
#151845 #2A1545 #421545
triadic
#2A1545 #452A15 #15452A
tetradic
#2A1545 #451518 #304515 #154542
square
#2A1545 #451518 #304515 #154542
split-complementary
#2A1545 #454215 #184515
monochromatic
#0E0717 #0E0717 #2A1545 #472374 #6332A3

Accessibility & contrast

On white

16.26
#2A1545 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A1545 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1545
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1545#FFFFFF#000000##FFFFFF
##2A15451.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002047
Deuteranopia (green-blind)
#052044
Tritanopia (blue-blind)
#241F2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1545;
/* rgb */ color: rgb(42, 21, 69);
/* oklch */ color: oklch(25.4% 0.087 300.5);
Tailwind
colors: {
  custom: {
    50: '#665379',
    500: '#2a1545',
    950: '#000000',
  },
}
SCSS
$custom: #2a1545;
$custom-light: #665379;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1545",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 69
  },
  "hsl": {
    "h": 266.25,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25395,
    "c": 0.08679,
    "h": 300.5
  },
  "luminance": 0.01458
}

Semantic roles & 50–950 ramp

primary
#2A1545
secondary
#5F7D39
accent
#DD4B9D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1545

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

Preview Lab → · Contrast checker → · Palette generator →

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