#2A1A70#2A1A70

#2A1A70 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.139 H 282.8°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#2A1A70
RGBrgb(42, 26, 112)
HSLhsl(251, 62%, 27%)
HSVhsv(251, 77%, 44%)
CMYKcmyk(62.5%, 76.8%, 0%, 56.1%)
CIE-LABlab(17.46, 33.20, -46.88)
CIE-LCHlch(17.46, 57.45, 305.31°)
OKLaboklab(30.31% 0.0308 -0.1351)
OKLCHoklch(30.31% 0.139 282.8)
XYZxyz(4.2480, 2.4006, 15.5656)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A70 #60701A
analogous
#1A3570 #2A1A70 #551A70
triadic
#2A1A70 #702A1A #1A702A
tetradic
#2A1A70 #701A35 #60701A #1A7055
square
#2A1A70 #701A35 #60701A #1A7055
split-complementary
#2A1A70 #70551A #35701A
monochromatic
#090619 #170E3E #2A1A70 #3D26A2 #5134D0

Accessibility & contrast

On white

14.19
#2A1A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2A1A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A70
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A70#FFFFFF#000000##FFFFFF
##2A1A701.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1a70;
/* rgb */ color: rgb(42, 26, 112);
/* oklch */ color: oklch(30.3% 0.139 282.8);
Tailwind
colors: {
  custom: {
    50: '#6d589a',
    500: '#2a1a70',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a70;
$custom-light: #6d589a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a70",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 112
  },
  "hsl": {
    "h": 251.163,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30305,
    "c": 0.13858,
    "h": 282.8
  },
  "luminance": 0.02401
}

Semantic roles & 50–950 ramp

primary
#2A1A70
secondary
#92A541
accent
#E542C7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A1A70

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

Preview Lab → · Contrast checker → · Palette generator →

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