#2A1546#2A1546

#2A1546 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.088 H 299.9°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#2A1546
RGBrgb(42, 21, 70)
HSLhsl(266, 54%, 18%)
HSVhsv(266, 70%, 27%)
CMYKcmyk(40%, 70%, 0%, 72.5%)
CIE-LABlab(12.42, 22.71, -26.91)
CIE-LCHlch(12.42, 35.21, 310.16°)
OKLaboklab(25.48% 0.0439 -0.0765)
OKLCHoklch(25.48% 0.088 299.9)
XYZxyz(2.3282, 1.4707, 5.9544)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1546 #314615
analogous
#151946 #2A1546 #421546
triadic
#2A1546 #462A15 #15462A
tetradic
#2A1546 #461519 #314615 #154642
square
#2A1546 #461519 #314615 #154642
split-complementary
#2A1546 #464215 #194615
monochromatic
#0E0718 #0E0718 #2A1546 #462375 #6231A4

Accessibility & contrast

On white

16.23
#2A1546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1546
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1546#FFFFFF#000000##FFFFFF
##2A15461.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002048
Deuteranopia (green-blind)
#032045
Tritanopia (blue-blind)
#24202B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1546;
/* rgb */ color: rgb(42, 21, 70);
/* oklch */ color: oklch(25.5% 0.088 299.9);
Tailwind
colors: {
  custom: {
    50: '#66537a',
    500: '#2a1546',
    950: '#000000',
  },
}
SCSS
$custom: #2a1546;
$custom-light: #66537a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1546",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 70
  },
  "hsl": {
    "h": 265.714,
    "s": 53.846,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25479,
    "c": 0.0882,
    "h": 299.9
  },
  "luminance": 0.01471
}

Semantic roles & 50–950 ramp

primary
#2A1546
secondary
#607E39
accent
#DD4B9E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1546

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

Preview Lab → · Contrast checker → · Palette generator →

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