#2A1A72#2A1A72

#2A1A72 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.141 H 282.4°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2A1A72
RGBrgb(42, 26, 114)
HSLhsl(251, 63%, 27%)
HSVhsv(251, 77%, 45%)
CMYKcmyk(63.2%, 77.2%, 0%, 55.3%)
CIE-LABlab(17.67, 33.86, -47.83)
CIE-LCHlch(17.67, 58.61, 305.29°)
OKLaboklab(30.51% 0.0303 -0.1379)
OKLCHoklch(30.51% 0.141 282.4)
XYZxyz(4.3606, 2.4456, 16.1586)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A72 #62721A
analogous
#1A3672 #2A1A72 #561A72
triadic
#2A1A72 #722A1A #1A722A
tetradic
#2A1A72 #721A36 #62721A #1A7256
square
#2A1A72 #721A36 #62721A #1A7256
split-complementary
#2A1A72 #72561A #36721A
monochromatic
#090619 #180F40 #2A1A72 #3C25A4 #5235D1

Accessibility & contrast

On white

14.10
#2A1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2A1A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A72
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A72#FFFFFF#000000##FFFFFF
##2A1A721.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1a72;
/* rgb */ color: rgb(42, 26, 114);
/* oklch */ color: oklch(30.5% 0.141 282.4);
Tailwind
colors: {
  custom: {
    50: '#6e599b',
    500: '#2a1a72',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a72;
$custom-light: #6e599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a72",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 250.909,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30515,
    "c": 0.14119,
    "h": 282.4
  },
  "luminance": 0.02446
}

Semantic roles & 50–950 ramp

primary
#2A1A72
secondary
#94A741
accent
#E642C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1A72

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

Preview Lab → · Contrast checker → · Palette generator →

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