#2D1A9B#2D1A9B

#2D1A9B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.191 H 276.9°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#2D1A9B
RGBrgb(45, 26, 155)
HSLhsl(249, 71%, 35%)
HSVhsv(249, 83%, 61%)
CMYKcmyk(71%, 83.2%, 0%, 39.2%)
CIE-LABlab(22.52, 47.13, -65.61)
CIE-LCHlch(22.52, 80.78, 305.69°)
OKLaboklab(35.32% 0.0231 -0.1896)
OKLCHoklch(35.32% 0.191 276.9)
XYZxyz(7.3661, 3.6626, 31.3227)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A9B #889B1A
analogous
#1A479B #2D1A9B #6D1A9B
triadic
#2D1A9B #9B2D1A #1A9B2D
tetradic
#2D1A9B #9B1A47 #889B1A #1A9B6D
square
#2D1A9B #9B1A47 #889B1A #1A9B6D
split-complementary
#2D1A9B #9B6D1A #479B1A
monochromatic
#0F0832 #1E1167 #2D1A9B #3C23CF #644EE1

Accessibility & contrast

On white

12.12
#2D1A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D1A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A9B
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A9B#FFFFFF#000000##FFFFFF
##2D1A9B1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d1a9b;
/* rgb */ color: rgb(45, 26, 155);
/* oklch */ color: oklch(35.3% 0.191 276.9);
Tailwind
colors: {
  custom: {
    50: '#785bba',
    500: '#2d1a9b',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a9b;
$custom-light: #785bba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a9b",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 248.837,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35323,
    "c": 0.19098,
    "h": 276.9
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#2D1A9B
secondary
#B2C44D
accent
#EE3AD3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D1A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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