#2A1E84#2A1E84

#2A1E84 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.160 H 278.3°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#2A1E84
RGBrgb(42, 30, 132)
HSLhsl(247, 63%, 32%)
HSVhsv(247, 77%, 52%)
CMYKcmyk(68.2%, 77.3%, 0%, 48.2%)
CIE-LABlab(20.39, 37.52, -54.85)
CIE-LCHlch(20.39, 66.45, 304.37°)
OKLaboklab(33.01% 0.0231 -0.1584)
OKLCHoklch(33.01% 0.16 278.3)
XYZxyz(5.5826, 3.0863, 22.1268)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E84 #78841E
analogous
#1E4584 #2A1E84 #5D1E84
triadic
#2A1E84 #842A1E #1E842A
tetradic
#2A1E84 #841E45 #78841E #1E845D
square
#2A1E84 #841E45 #78841E #1E845D
split-complementary
#2A1E84 #845D1E #45841E
monochromatic
#0A0720 #1A1352 #2A1E84 #3A29B6 #5847D5

Accessibility & contrast

On white

12.98
#2A1E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A1E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E84
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E84#FFFFFF#000000##FFFFFF
##2A1E841.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1e84;
/* rgb */ color: rgb(42, 30, 132);
/* oklch */ color: oklch(33.0% 0.160 278.3);
Tailwind
colors: {
  custom: {
    50: '#715ca9',
    500: '#2a1e84',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e84;
$custom-light: #715ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e84",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 132
  },
  "hsl": {
    "h": 247.059,
    "s": 62.963,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33006,
    "c": 0.16008,
    "h": 278.3
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#2A1E84
secondary
#AAB747
accent
#E642D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1E84

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

Preview Lab → · Contrast checker → · Palette generator →

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