#2D1AA1#2D1AA1

#2D1AA1 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.198 H 276.2°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2D1AA1
RGBrgb(45, 26, 161)
HSLhsl(248, 72%, 37%)
HSVhsv(248, 84%, 63%)
CMYKcmyk(72%, 83.9%, 0%, 36.9%)
CIE-LABlab(23.23, 48.93, -68.10)
CIE-LCHlch(23.23, 83.86, 305.70°)
OKLaboklab(36.02% 0.0212 -0.1968)
OKLCHoklch(36.02% 0.198 276.2)
XYZxyz(7.8825, 3.8691, 34.0427)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1AA1 #8EA11A
analogous
#1A4BA1 #2D1AA1 #711AA1
triadic
#2D1AA1 #A12D1A #1AA12D
tetradic
#2D1AA1 #A11A4B #8EA11A #1AA171
square
#2D1AA1 #A11A4B #8EA11A #1AA171
split-complementary
#2D1AA1 #A1711A #4BA11A
monochromatic
#100938 #1E116C #2D1AA1 #3C23D6 #6752E3

Accessibility & contrast

On white

11.84
#2D1AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D1AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1AA1
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1AA1#FFFFFF#000000##FFFFFF
##2D1AA11.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00319F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d1aa1;
/* rgb */ color: rgb(45, 26, 161);
/* oklch */ color: oklch(36.0% 0.198 276.2);
Tailwind
colors: {
  custom: {
    50: '#795cbe',
    500: '#2d1aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2d1aa1;
$custom-light: #795cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1aa1",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 248.444,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3602,
    "c": 0.19795,
    "h": 276.2
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#2D1AA1
secondary
#B5C651
accent
#EF39D5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D1AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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