#2A1756#2A1756

#2A1756 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.107 H 291.5°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#2A1756
RGBrgb(42, 23, 86)
HSLhsl(258, 58%, 21%)
HSVhsv(258, 73%, 34%)
CMYKcmyk(51.2%, 73.3%, 0%, 66.3%)
CIE-LABlab(14.27, 26.49, -34.90)
CIE-LCHlch(14.27, 43.82, 307.20°)
OKLaboklab(27.25% 0.0393 -0.1)
OKLCHoklch(27.25% 0.107 291.5)
XYZxyz(2.9405, 1.7768, 8.9903)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1756 #435617
analogous
#172456 #2A1756 #4A1756
triadic
#2A1756 #562A17 #17562A
tetradic
#2A1756 #561724 #435617 #17564A
square
#2A1756 #561724 #435617 #17564A
split-complementary
#2A1756 #564A17 #245617
monochromatic
#0C0618 #120A26 #2A1756 #422486 #5931B7

Accessibility & contrast

On white

15.49
#2A1756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A1756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1756
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1756#FFFFFF#000000##FFFFFF
##2A17561.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#1C2734
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1756;
/* rgb */ color: rgb(42, 23, 86);
/* oklch */ color: oklch(27.2% 0.107 291.5);
Tailwind
colors: {
  custom: {
    50: '#685586',
    500: '#2a1756',
    950: '#000000',
  },
}
SCSS
$custom: #2a1756;
$custom-light: #685586;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1756",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 86
  },
  "hsl": {
    "h": 258.095,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27249,
    "c": 0.10743,
    "h": 291.5
  },
  "luminance": 0.01777
}

Semantic roles & 50–950 ramp

primary
#2A1756
secondary
#758D3C
accent
#E147B3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2A1756

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

Preview Lab → · Contrast checker → · Palette generator →

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