#2A1643#2A1643

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

Color values

HEX#2A1643
RGBrgb(42, 22, 67)
HSLhsl(267, 51%, 17%)
HSVhsv(267, 67%, 26%)
CMYKcmyk(37.3%, 67.2%, 0%, 73.7%)
CIE-LABlab(12.42, 21.14, -24.81)
CIE-LCHlch(12.42, 32.60, 310.44°)
OKLaboklab(25.41% 0.0426 -0.0703)
OKLCHoklch(25.41% 0.082 301.2)
XYZxyz(2.2546, 1.4713, 5.4743)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1643 #2F4316
analogous
#161843 #2A1643 #411643
triadic
#2A1643 #432A16 #16432A
tetradic
#2A1643 #431618 #2F4316 #164341
square
#2A1643 #431618 #2F4316 #164341
split-complementary
#2A1643 #434116 #184316
monochromatic
#0E0817 #0E0817 #2A1643 #472571 #64349F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A1643#FFFFFF#000000##FFFFFF
##2A16431.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)
#022044
Deuteranopia (green-blind)
#092042
Tritanopia (blue-blind)
#251F2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1643;
/* rgb */ color: rgb(42, 22, 67);
/* oklch */ color: oklch(25.4% 0.082 301.2);
Tailwind
colors: {
  custom: {
    50: '#665477',
    500: '#2a1643',
    950: '#000000',
  },
}
SCSS
$custom: #2a1643;
$custom-light: #665477;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1643",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 67
  },
  "hsl": {
    "h": 266.667,
    "s": 50.562,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25406,
    "c": 0.08222,
    "h": 301.2
  },
  "luminance": 0.01471
}

Semantic roles & 50–950 ramp

primary
#2A1643
secondary
#5E7A3A
accent
#DA4E9C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1643

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

Preview Lab → · Contrast checker → · Palette generator →

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