#2A1689#2A1689

#2A1689 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.174 H 278.6°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2A1689
RGBrgb(42, 22, 137)
HSLhsl(250, 72%, 31%)
HSVhsv(250, 84%, 54%)
CMYKcmyk(69.3%, 83.9%, 0%, 46.3%)
CIE-LABlab(19.52, 43.23, -59.42)
CIE-LCHlch(19.52, 73.48, 306.04°)
OKLaboklab(32.57% 0.0259 -0.1716)
OKLCHoklch(32.57% 0.174 278.6)
XYZxyz(5.7557, 2.8717, 23.9130)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1689 #758916
analogous
#163B89 #2A1689 #631689
triadic
#2A1689 #892A16 #16892A
tetradic
#2A1689 #89163B #758916 #168963
square
#2A1689 #89163B #758916 #168963
split-complementary
#2A1689 #896316 #3B8916
monochromatic
#0A0520 #1A0E54 #2A1689 #3A1EBE #573ADF

Accessibility & contrast

On white

13.34
#2A1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A1689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1689
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1689#FFFFFF#000000##FFFFFF
##2A16891.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1689;
/* rgb */ color: rgb(42, 22, 137);
/* oklch */ color: oklch(32.6% 0.174 278.6);
Tailwind
colors: {
  custom: {
    50: '#7358ad',
    500: '#2a1689',
    950: '#000000',
  },
}
SCSS
$custom: #2a1689;
$custom-light: #7358ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1689",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 250.435,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3257,
    "c": 0.17357,
    "h": 278.6
  },
  "luminance": 0.02872
}

Semantic roles & 50–950 ramp

primary
#2A1689
secondary
#A7BD3E
accent
#EF39CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1689

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

Preview Lab → · Contrast checker → · Palette generator →

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