#2D1BAA#2D1BAA

#2D1BAA is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.2% C 0.208 H 275.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2D1BAA
RGBrgb(45, 27, 170)
HSLhsl(248, 73%, 39%)
HSVhsv(248, 84%, 67%)
CMYKcmyk(73.5%, 84.1%, 0%, 33.3%)
CIE-LABlab(24.46, 51.18, -71.52)
CIE-LCHlch(24.46, 87.95, 305.58°)
OKLaboklab(37.17% 0.0182 -0.2068)
OKLCHoklch(37.17% 0.208 275)
XYZxyz(8.7274, 4.2432, 38.3815)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1BAA #98AA1B
analogous
#1B51AA #2D1BAA #741BAA
triadic
#2D1BAA #AA2D1B #1BAA2D
tetradic
#2D1BAA #AA1B51 #98AA1B #1BAA74
square
#2D1BAA #AA1B51 #98AA1B #1BAA74
split-complementary
#2D1BAA #AA741B #51AA1B
monochromatic
#110A40 #1F1375 #2D1BAA #3D26DC #6C5BE5

Accessibility & contrast

On white

11.36
#2D1BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2D1BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1BAA
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1BAA#FFFFFF#000000##FFFFFF
##2D1BAA1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AE
Deuteranopia (green-blind)
#0034A8
Tritanopia (blue-blind)
#004965
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d1baa;
/* rgb */ color: rgb(45, 27, 170);
/* oklch */ color: oklch(37.2% 0.208 275.0);
Tailwind
colors: {
  custom: {
    50: '#7b5dc5',
    500: '#2d1baa',
    950: '#000000',
  },
}
SCSS
$custom: #2d1baa;
$custom-light: #7b5dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1baa",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 170
  },
  "hsl": {
    "h": 247.552,
    "s": 72.589,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37174,
    "c": 0.20756,
    "h": 275
  },
  "luminance": 0.04244
}

Semantic roles & 50–950 ramp

primary
#2D1BAA
secondary
#BAC958
accent
#EF39D8
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2D1BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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