#2A1E86#2A1E86

#2A1E86 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.163 H 278.0°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2A1E86
RGBrgb(42, 30, 134)
HSLhsl(247, 63%, 32%)
HSVhsv(247, 78%, 53%)
CMYKcmyk(68.7%, 77.6%, 0%, 47.5%)
CIE-LABlab(20.60, 38.18, -55.75)
CIE-LCHlch(20.60, 67.57, 304.41°)
OKLaboklab(33.22% 0.0226 -0.161)
OKLCHoklch(33.22% 0.163 278)
XYZxyz(5.7208, 3.1415, 22.8545)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E86 #7A861E
analogous
#1E4686 #2A1E86 #5E1E86
triadic
#2A1E86 #862A1E #1E862A
tetradic
#2A1E86 #861E46 #7A861E #1E865E
square
#2A1E86 #861E46 #7A861E #1E865E
split-complementary
#2A1E86 #865E1E #46861E
monochromatic
#0B0822 #1A1354 #2A1E86 #3A29B8 #5948D6

Accessibility & contrast

On white

12.90
#2A1E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1E86
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E86#FFFFFF#000000##FFFFFF
##2A1E861.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1e86;
/* rgb */ color: rgb(42, 30, 134);
/* oklch */ color: oklch(33.2% 0.163 278.0);
Tailwind
colors: {
  custom: {
    50: '#725caa',
    500: '#2a1e86',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e86;
$custom-light: #725caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e86",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 246.923,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33223,
    "c": 0.16263,
    "h": 278
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#2A1E86
secondary
#ABB847
accent
#E641D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1E86

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

Preview Lab → · Contrast checker → · Palette generator →

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