#2A1783#2A1783

#2A1783 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.166 H 279.5°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#2A1783
RGBrgb(42, 23, 131)
HSLhsl(251, 70%, 30%)
HSVhsv(251, 82%, 51%)
CMYKcmyk(67.9%, 82.4%, 0%, 48.6%)
CIE-LABlab(18.98, 40.90, -56.53)
CIE-LCHlch(18.98, 69.78, 305.89°)
OKLaboklab(31.99% 0.0274 -0.1632)
OKLCHoklch(31.99% 0.166 279.5)
XYZxyz(5.3567, 2.7433, 21.7155)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1783 #708317
analogous
#173A83 #2A1783 #601783
triadic
#2A1783 #832A17 #17832A
tetradic
#2A1783 #83173A #708317 #178360
square
#2A1783 #83173A #708317 #178360
split-complementary
#2A1783 #836017 #3A8317
monochromatic
#09051B #190E4F #2A1783 #3B20B7 #5538DC

Accessibility & contrast

On white

13.56
#2A1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1783
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1783#FFFFFF#000000##FFFFFF
##2A17831.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1783;
/* rgb */ color: rgb(42, 23, 131);
/* oklch */ color: oklch(32.0% 0.166 279.5);
Tailwind
colors: {
  custom: {
    50: '#7258a8',
    500: '#2a1783',
    950: '#000000',
  },
}
SCSS
$custom: #2a1783;
$custom-light: #7258a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1783",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 250.556,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31993,
    "c": 0.16551,
    "h": 279.5
  },
  "luminance": 0.02744
}

Semantic roles & 50–950 ramp

primary
#2A1783
secondary
#A2B73F
accent
#ED3BCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1783

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

Preview Lab → · Contrast checker → · Palette generator →

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