#2A1DBA#2A1DBA

#2A1DBA is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 39.1% C 0.225 H 272.4°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#2A1DBA
RGBrgb(42, 29, 186)
HSLhsl(245, 73%, 42%)
HSVhsv(245, 84%, 73%)
CMYKcmyk(77.4%, 84.4%, 0%, 27.1%)
CIE-LABlab(26.49, 54.87, -77.73)
CIE-LCHlch(26.49, 95.15, 305.22°)
OKLaboklab(39.08% 0.0093 -0.2248)
OKLCHoklch(39.08% 0.225 272.4)
XYZxyz(10.2542, 4.9150, 46.8531)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1DBA #ADBA1D
analogous
#1D5FBA #2A1DBA #781DBA
triadic
#2A1DBA #BA2A1D #1DBA2A
tetradic
#2A1DBA #BA1D5F #ADBA1D #1DBA78
square
#2A1DBA #BA1D5F #ADBA1D #1DBA78
split-complementary
#2A1DBA #BA781D #5FBA1D
monochromatic
#120C50 #1E1585 #2A1DBA #4335DF #746AE8

Accessibility & contrast

On white

10.59
#2A1DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A1DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1DBA
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1DBA#FFFFFF#000000##FFFFFF
##2A1DBA1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046BE
Deuteranopia (green-blind)
#0037B7
Tritanopia (blue-blind)
#00516F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a1dba;
/* rgb */ color: rgb(42, 29, 186);
/* oklch */ color: oklch(39.1% 0.225 272.4);
Tailwind
colors: {
  custom: {
    50: '#7e5fd0',
    500: '#2a1dba',
    950: '#000000',
  },
}
SCSS
$custom: #2a1dba;
$custom-light: #7e5fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1dba",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 186
  },
  "hsl": {
    "h": 244.968,
    "s": 73.023,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39076,
    "c": 0.22502,
    "h": 272.4
  },
  "luminance": 0.04916
}

Semantic roles & 50–950 ramp

primary
#2A1DBA
secondary
#C5CD65
accent
#F038E1
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #2A1DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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