#2A1083#2A1083

#2A1083 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.171 H 280.3°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#2A1083
RGBrgb(42, 16, 131)
HSLhsl(254, 78%, 29%)
HSVhsv(254, 88%, 51%)
CMYKcmyk(67.9%, 87.8%, 0%, 48.6%)
CIE-LABlab(17.92, 44.02, -58.29)
CIE-LCHlch(17.92, 73.05, 307.06°)
OKLaboklab(31.26% 0.0306 -0.1682)
OKLCHoklch(31.26% 0.171 280.3)
XYZxyz(5.2356, 2.5011, 21.6752)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1083 #698310
analogous
#103083 #2A1083 #641083
triadic
#2A1083 #832A10 #10832A
tetradic
#2A1083 #831030 #698310 #108364
square
#2A1083 #831030 #698310 #108364
split-complementary
#2A1083 #836410 #308310
monochromatic
#09031B #19094C #2A1083 #3B17BA #5329E5

Accessibility & contrast

On white

14.00
#2A1083 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2A1083 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1083
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1083#FFFFFF#000000##FFFFFF
##2A10831.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003086
Deuteranopia (green-blind)
#002781
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1083;
/* rgb */ color: rgb(42, 16, 131);
/* oklch */ color: oklch(31.3% 0.171 280.3);
Tailwind
colors: {
  custom: {
    50: '#7255a8',
    500: '#2a1083',
    950: '#000000',
  },
}
SCSS
$custom: #2a1083;
$custom-light: #7255a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1083",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 131
  },
  "hsl": {
    "h": 253.565,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31262,
    "c": 0.17099,
    "h": 280.3
  },
  "luminance": 0.02502
}

Semantic roles & 50–950 ramp

primary
#2A1083
secondary
#9BB936
accent
#F533C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1083

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

Preview Lab → · Contrast checker → · Palette generator →

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