#2A1646#2A1646

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

Color values

HEX#2A1646
RGBrgb(42, 22, 70)
HSLhsl(265, 52%, 18%)
HSVhsv(265, 69%, 27%)
CMYKcmyk(40%, 68.6%, 0%, 72.5%)
CIE-LABlab(12.66, 22.07, -26.53)
CIE-LCHlch(12.66, 34.50, 309.75°)
OKLaboklab(25.65% 0.0425 -0.0753)
OKLCHoklch(25.65% 0.087 299.4)
XYZxyz(2.3470, 1.5082, 5.9606)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1646 #324616
analogous
#161A46 #2A1646 #421646
triadic
#2A1646 #462A16 #16462A
tetradic
#2A1646 #46161A #324616 #164642
square
#2A1646 #46161A #324616 #164642
split-complementary
#2A1646 #464216 #1A4616
monochromatic
#0E0717 #0E0717 #2A1646 #462575 #6233A3

Accessibility & contrast

On white

16.13
#2A1646 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1646
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1646#FFFFFF#000000##FFFFFF
##2A16461.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002148
Deuteranopia (green-blind)
#052045
Tritanopia (blue-blind)
#24202B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1646;
/* rgb */ color: rgb(42, 22, 70);
/* oklch */ color: oklch(25.7% 0.087 299.4);
Tailwind
colors: {
  custom: {
    50: '#66547a',
    500: '#2a1646',
    950: '#000000',
  },
}
SCSS
$custom: #2a1646;
$custom-light: #66547a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1646",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 70
  },
  "hsl": {
    "h": 265,
    "s": 52.174,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25653,
    "c": 0.08652,
    "h": 299.4
  },
  "luminance": 0.01508
}

Semantic roles & 50–950 ramp

primary
#2A1646
secondary
#617D3A
accent
#DC4CA0
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2A1646

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

Preview Lab → · Contrast checker → · Palette generator →

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