#2D1AB4#2D1AB4

#2D1AB4 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.3% C 0.220 H 274.1°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#2D1AB4
RGBrgb(45, 26, 180)
HSLhsl(247, 75%, 40%)
HSVhsv(247, 86%, 71%)
CMYKcmyk(75%, 85.6%, 0%, 29.4%)
CIE-LABlab(25.54, 54.52, -75.74)
CIE-LCHlch(25.54, 93.32, 305.75°)
OKLaboklab(38.26% 0.0156 -0.2189)
OKLCHoklch(38.26% 0.22 274.1)
XYZxyz(9.6871, 4.5910, 43.5468)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1AB4 #A1B41A
analogous
#1A54B4 #2D1AB4 #7A1AB4
triadic
#2D1AB4 #B42D1A #1AB42D
tetradic
#2D1AB4 #B41A54 #A1B41A #1AB47A
square
#2D1AB4 #B41A54 #A1B41A #1AB47A
split-complementary
#2D1AB4 #B47A1A #54B41A
monochromatic
#120B49 #20127F #2D1AB4 #412BE0 #7160E8

Accessibility & contrast

On white

10.95
#2D1AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D1AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1AB4
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1AB4#FFFFFF#000000##FFFFFF
##2D1AB41.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d1ab4;
/* rgb */ color: rgb(45, 26, 180);
/* oklch */ color: oklch(38.3% 0.220 274.1);
Tailwind
colors: {
  custom: {
    50: '#7e5ecc',
    500: '#2d1ab4',
    950: '#000000',
  },
}
SCSS
$custom: #2d1ab4;
$custom-light: #7e5ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1ab4",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 247.403,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38262,
    "c": 0.2195,
    "h": 274.1
  },
  "luminance": 0.04592
}

Semantic roles & 50–950 ramp

primary
#2D1AB4
secondary
#BFCC5D
accent
#F136DA
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2D1AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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