#2A1E85#2A1E85

#2A1E85 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.161 H 278.1°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#2A1E85
RGBrgb(42, 30, 133)
HSLhsl(247, 63%, 32%)
HSVhsv(247, 77%, 52%)
CMYKcmyk(68.4%, 77.4%, 0%, 47.8%)
CIE-LABlab(20.49, 37.85, -55.30)
CIE-LCHlch(20.49, 67.01, 304.39°)
OKLaboklab(33.11% 0.0228 -0.1597)
OKLCHoklch(33.11% 0.161 278.1)
XYZxyz(5.6514, 3.1138, 22.4889)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E85 #79851E
analogous
#1E4685 #2A1E85 #5E1E85
triadic
#2A1E85 #852A1E #1E852A
tetradic
#2A1E85 #851E46 #79851E #1E855E
square
#2A1E85 #851E46 #79851E #1E855E
split-complementary
#2A1E85 #855E1E #46851E
monochromatic
#0A0721 #1A1353 #2A1E85 #3A29B7 #5848D6

Accessibility & contrast

On white

12.94
#2A1E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1E85
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E85#FFFFFF#000000##FFFFFF
##2A1E851.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1e85;
/* rgb */ color: rgb(42, 30, 133);
/* oklch */ color: oklch(33.1% 0.161 278.1);
Tailwind
colors: {
  custom: {
    50: '#715caa',
    500: '#2a1e85',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e85;
$custom-light: #715caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e85",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 133
  },
  "hsl": {
    "h": 246.99,
    "s": 63.19,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33114,
    "c": 0.16135,
    "h": 278.1
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1E85

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

Preview Lab → · Contrast checker → · Palette generator →

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