#2A1741#2A1741

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

Color values

HEX#2A1741
RGBrgb(42, 23, 65)
HSLhsl(267, 48%, 17%)
HSVhsv(267, 65%, 25%)
CMYKcmyk(35.4%, 64.6%, 0%, 74.5%)
CIE-LABlab(12.52, 19.88, -23.25)
CIE-LCHlch(12.52, 30.59, 310.53°)
OKLaboklab(25.43% 0.0411 -0.0657)
OKLCHoklch(25.43% 0.078 302)
XYZxyz(2.2152, 1.4867, 5.1703)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1741 #2E4117
analogous
#171941 #2A1741 #3F1741
triadic
#2A1741 #412A17 #17412A
tetradic
#2A1741 #411719 #2E4117 #17413F
square
#2A1741 #411719 #2E4117 #17413F
split-complementary
#2A1741 #413F17 #194117
monochromatic
#0F0817 #0F0817 #2A1741 #47276E #64379B

Accessibility & contrast

On white

16.19
#2A1741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A1741 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1741
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1741#FFFFFF#000000##FFFFFF
##2A17411.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062042
Deuteranopia (green-blind)
#0C2040
Tritanopia (blue-blind)
#261F29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1741;
/* rgb */ color: rgb(42, 23, 65);
/* oklch */ color: oklch(25.4% 0.078 302.0);
Tailwind
colors: {
  custom: {
    50: '#655576',
    500: '#2a1741',
    950: '#000000',
  },
}
SCSS
$custom: #2a1741;
$custom-light: #655576;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1741",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 65
  },
  "hsl": {
    "h": 267.143,
    "s": 47.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25429,
    "c": 0.07753,
    "h": 302
  },
  "luminance": 0.01487
}

Semantic roles & 50–950 ramp

primary
#2A1741
secondary
#5D783C
accent
#D7509A
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2A1741

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

Preview Lab → · Contrast checker → · Palette generator →

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