#2A1283#2A1283

#2A1283 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.170 H 280.1°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#2A1283
RGBrgb(42, 18, 131)
HSLhsl(253, 76%, 29%)
HSVhsv(253, 86%, 51%)
CMYKcmyk(67.9%, 86.3%, 0%, 48.6%)
CIE-LABlab(18.20, 43.20, -57.83)
CIE-LCHlch(18.20, 72.18, 306.76°)
OKLaboklab(31.45% 0.0298 -0.1669)
OKLCHoklch(31.45% 0.17 280.1)
XYZxyz(5.2666, 2.5631, 21.6855)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1283 #6B8312
analogous
#123383 #2A1283 #631283
triadic
#2A1283 #832A12 #12832A
tetradic
#2A1283 #831233 #6B8312 #128363
square
#2A1283 #831233 #6B8312 #128363
split-complementary
#2A1283 #836312 #338312
monochromatic
#09041B #190B4D #2A1283 #3B19B9 #542DE2

Accessibility & contrast

On white

13.88
#2A1283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A1283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1283
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1283#FFFFFF#000000##FFFFFF
##2A12831.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1283;
/* rgb */ color: rgb(42, 18, 131);
/* oklch */ color: oklch(31.5% 0.170 280.1);
Tailwind
colors: {
  custom: {
    50: '#7255a8',
    500: '#2a1283',
    950: '#000000',
  },
}
SCSS
$custom: #2a1283;
$custom-light: #7255a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1283",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 252.743,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31453,
    "c": 0.16956,
    "h": 280.1
  },
  "luminance": 0.02564
}

Semantic roles & 50–950 ramp

primary
#2A1283
secondary
#9DB838
accent
#F235CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1283

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

Preview Lab → · Contrast checker → · Palette generator →

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