#2A1688#2A1688

#2A1688 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.5% C 0.172 H 278.8°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2A1688
RGBrgb(42, 22, 136)
HSLhsl(251, 72%, 31%)
HSVhsv(251, 84%, 53%)
CMYKcmyk(69.1%, 83.8%, 0%, 46.7%)
CIE-LABlab(19.40, 42.93, -58.99)
CIE-LCHlch(19.40, 72.95, 306.04°)
OKLaboklab(32.45% 0.0263 -0.1704)
OKLCHoklch(32.45% 0.172 278.8)
XYZxyz(5.6843, 2.8431, 23.5370)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1688 #748816
analogous
#163B88 #2A1688 #631688
triadic
#2A1688 #882A16 #16882A
tetradic
#2A1688 #88163B #748816 #168863
square
#2A1688 #88163B #748816 #168863
split-complementary
#2A1688 #886316 #3B8816
monochromatic
#09051F #1A0D53 #2A1688 #3A1FBD #5639DF

Accessibility & contrast

On white

13.39
#2A1688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1688
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1688#FFFFFF#000000##FFFFFF
##2A16881.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1688;
/* rgb */ color: rgb(42, 22, 136);
/* oklch */ color: oklch(32.5% 0.172 278.8);
Tailwind
colors: {
  custom: {
    50: '#7358ac',
    500: '#2a1688',
    950: '#000000',
  },
}
SCSS
$custom: #2a1688;
$custom-light: #7358ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1688",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 136
  },
  "hsl": {
    "h": 250.526,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32454,
    "c": 0.17237,
    "h": 278.8
  },
  "luminance": 0.02844
}

Semantic roles & 50–950 ramp

primary
#2A1688
secondary
#A6BC3E
accent
#EF39CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1688

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

Preview Lab → · Contrast checker → · Palette generator →

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