#2A1A67#2A1A67

#2A1A67 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.127 H 285.1°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2A1A67
RGBrgb(42, 26, 103)
HSLhsl(252, 60%, 25%)
HSVhsv(252, 75%, 40%)
CMYKcmyk(59.2%, 74.8%, 0%, 59.6%)
CIE-LABlab(16.55, 30.23, -42.50)
CIE-LCHlch(16.55, 52.15, 305.42°)
OKLaboklab(29.38% 0.0329 -0.1223)
OKLCHoklch(29.38% 0.127 285.1)
XYZxyz(3.7717, 2.2101, 13.0572)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A67 #57671A
analogous
#1A3067 #2A1A67 #511A67
triadic
#2A1A67 #672A1A #1A672A
tetradic
#2A1A67 #671A30 #57671A #1A6751
square
#2A1A67 #671A30 #57671A #1A6751
split-complementary
#2A1A67 #67511A #30671A
monochromatic
#0A0618 #160E36 #2A1A67 #3E2698 #5233C9

Accessibility & contrast

On white

14.56
#2A1A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A1A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A67
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A67#FFFFFF#000000##FFFFFF
##2A1A671.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#0D2E3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a1a67;
/* rgb */ color: rgb(42, 26, 103);
/* oklch */ color: oklch(29.4% 0.127 285.1);
Tailwind
colors: {
  custom: {
    50: '#6b5893',
    500: '#2a1a67',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a67;
$custom-light: #6b5893;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a67",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 103
  },
  "hsl": {
    "h": 252.468,
    "s": 59.69,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29382,
    "c": 0.12664,
    "h": 285.1
  },
  "luminance": 0.0221
}

Semantic roles & 50–950 ramp

primary
#2A1A67
secondary
#899D40
accent
#E345C2
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1A67

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

Preview Lab → · Contrast checker → · Palette generator →

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