#2A1DA1#2A1DA1

#2A1DA1 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.1% C 0.196 H 274.7°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2A1DA1
RGBrgb(42, 29, 161)
HSLhsl(246, 69%, 37%)
HSVhsv(246, 82%, 63%)
CMYKcmyk(73.9%, 82%, 0%, 36.9%)
CIE-LABlab(23.48, 47.33, -67.69)
CIE-LCHlch(23.48, 82.60, 304.96°)
OKLaboklab(36.14% 0.016 -0.1957)
OKLCHoklch(36.14% 0.196 274.7)
XYZxyz(7.8251, 3.9434, 34.0601)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1DA1 #94A11D
analogous
#1D52A1 #2A1DA1 #6C1DA1
triadic
#2A1DA1 #A12A1D #1DA12A
tetradic
#2A1DA1 #A11D52 #94A11D #1DA16C
square
#2A1DA1 #A11D52 #94A11D #1DA16C
split-complementary
#2A1DA1 #A16C1D #52A11D
monochromatic
#0F0A39 #1C146D #2A1DA1 #3826D5 #6558E1

Accessibility & contrast

On white

11.74
#2A1DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A1DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1DA1
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1DA1#FFFFFF#000000##FFFFFF
##2A1DA11.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00329F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a1da1;
/* rgb */ color: rgb(42, 29, 161);
/* oklch */ color: oklch(36.1% 0.196 274.7);
Tailwind
colors: {
  custom: {
    50: '#785dbe',
    500: '#2a1da1',
    950: '#000000',
  },
}
SCSS
$custom: #2a1da1;
$custom-light: #785dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1da1",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 161
  },
  "hsl": {
    "h": 245.909,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36135,
    "c": 0.19639,
    "h": 274.7
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#2A1DA1
secondary
#B9C455
accent
#EC3CDB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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