#2A1A6B#2A1A6B

#2A1A6B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.132 H 284.0°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#2A1A6B
RGBrgb(42, 26, 107)
HSLhsl(252, 61%, 26%)
HSVhsv(252, 76%, 42%)
CMYKcmyk(60.7%, 75.7%, 0%, 58%)
CIE-LABlab(16.95, 31.55, -44.47)
CIE-LCHlch(16.95, 54.52, 305.36°)
OKLaboklab(29.79% 0.032 -0.128)
OKLCHoklch(29.79% 0.132 284)
XYZxyz(3.9773, 2.2923, 14.1399)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A6B #5B6B1A
analogous
#1A326B #2A1A6B #521A6B
triadic
#2A1A6B #6B2A1A #1A6B2A
tetradic
#2A1A6B #6B1A32 #5B6B1A #1A6B52
square
#2A1A6B #6B1A32 #5B6B1A #1A6B52
split-complementary
#2A1A6B #6B521A #326B1A
monochromatic
#0A0619 #170E3A #2A1A6B #3D269C #5132CD

Accessibility & contrast

On white

14.40
#2A1A6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A1A6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A6B
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A6B#FFFFFF#000000##FFFFFF
##2A1A6B1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#073040
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1a6b;
/* rgb */ color: rgb(42, 26, 107);
/* oklch */ color: oklch(29.8% 0.132 284.0);
Tailwind
colors: {
  custom: {
    50: '#6c5896',
    500: '#2a1a6b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a6b;
$custom-light: #6c5896;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a6b",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 107
  },
  "hsl": {
    "h": 251.852,
    "s": 60.902,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29788,
    "c": 0.13199,
    "h": 284
  },
  "luminance": 0.02293
}

Semantic roles & 50–950 ramp

primary
#2A1A6B
secondary
#8DA040
accent
#E444C4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1A6B

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

Preview Lab → · Contrast checker → · Palette generator →

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