#2A1E87#2A1E87

#2A1E87 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.164 H 277.8°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#2A1E87
RGBrgb(42, 30, 135)
HSLhsl(247, 64%, 32%)
HSVhsv(247, 78%, 53%)
CMYKcmyk(68.9%, 77.8%, 0%, 47.1%)
CIE-LABlab(20.71, 38.51, -56.20)
CIE-LCHlch(20.71, 68.13, 304.42°)
OKLaboklab(33.33% 0.0223 -0.1623)
OKLCHoklch(33.33% 0.164 277.8)
XYZxyz(5.7909, 3.1696, 23.2236)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E87 #7B871E
analogous
#1E4787 #2A1E87 #5E1E87
triadic
#2A1E87 #872A1E #1E872A
tetradic
#2A1E87 #871E47 #7B871E #1E875E
square
#2A1E87 #871E47 #7B871E #1E875E
split-complementary
#2A1E87 #875E1E #47871E
monochromatic
#0B0823 #1A1355 #2A1E87 #3A29B9 #5949D7

Accessibility & contrast

On white

12.85
#2A1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E87
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E87#FFFFFF#000000##FFFFFF
##2A1E871.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1e87;
/* rgb */ color: rgb(42, 30, 135);
/* oklch */ color: oklch(33.3% 0.164 277.8);
Tailwind
colors: {
  custom: {
    50: '#725cab',
    500: '#2a1e87',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e87;
$custom-light: #725cab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e87",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 246.857,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33331,
    "c": 0.16388,
    "h": 277.8
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#2A1E87
secondary
#ACB948
accent
#E741D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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