#2A1A7A#2A1A7A

#2A1A7A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.151 H 280.7°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2A1A7A
RGBrgb(42, 26, 122)
HSLhsl(250, 65%, 29%)
HSVhsv(250, 79%, 48%)
CMYKcmyk(65.6%, 78.7%, 0%, 52.2%)
CIE-LABlab(18.52, 36.47, -51.58)
CIE-LCHlch(18.52, 63.17, 305.27°)
OKLaboklab(31.37% 0.0282 -0.1488)
OKLCHoklch(31.37% 0.151 280.7)
XYZxyz(4.8360, 2.6358, 18.6625)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A7A #6A7A1A
analogous
#1A3A7A #2A1A7A #5A1A7A
triadic
#2A1A7A #7A2A1A #1A7A2A
tetradic
#2A1A7A #7A1A3A #6A7A1A #1A7A5A
square
#2A1A7A #7A1A3A #6A7A1A #1A7A5A
split-complementary
#2A1A7A #7A5A1A #3A7A1A
monochromatic
#090519 #190F48 #2A1A7A #3B25AC #5339D5

Accessibility & contrast

On white

13.75
#2A1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2A1A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A7A
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A7A#FFFFFF#000000##FFFFFF
##2A1A7A1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1a7a;
/* rgb */ color: rgb(42, 26, 122);
/* oklch */ color: oklch(31.4% 0.151 280.7);
Tailwind
colors: {
  custom: {
    50: '#6f59a1',
    500: '#2a1a7a',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a7a;
$custom-light: #6f59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a7a",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 250,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31371,
    "c": 0.15148,
    "h": 280.7
  },
  "luminance": 0.02636
}

Semantic roles & 50–950 ramp

primary
#2A1A7A
secondary
#9CAE41
accent
#E840CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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