#2D1A99#2D1A99

#2D1A99 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.189 H 277.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2D1A99
RGBrgb(45, 26, 153)
HSLhsl(249, 71%, 35%)
HSVhsv(249, 83%, 60%)
CMYKcmyk(70.6%, 83%, 0%, 40%)
CIE-LABlab(22.29, 46.52, -64.77)
CIE-LCHlch(22.29, 79.75, 305.69°)
OKLaboklab(35.09% 0.0237 -0.1871)
OKLCHoklch(35.09% 0.189 277.2)
XYZxyz(7.1995, 3.5959, 30.4455)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A99 #86991A
analogous
#1A4799 #2D1A99 #6C1A99
triadic
#2D1A99 #992D1A #1A992D
tetradic
#2D1A99 #991A47 #86991A #1A996C
square
#2D1A99 #991A47 #86991A #1A996C
split-complementary
#2D1A99 #996C1A #47991A
monochromatic
#0E0830 #1E1165 #2D1A99 #3C23CD #634DE1

Accessibility & contrast

On white

12.21
#2D1A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2D1A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A99
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A99#FFFFFF#000000##FFFFFF
##2D1A991.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9C
Deuteranopia (green-blind)
#003097
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d1a99;
/* rgb */ color: rgb(45, 26, 153);
/* oklch */ color: oklch(35.1% 0.189 277.2);
Tailwind
colors: {
  custom: {
    50: '#785bb8',
    500: '#2d1a99',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a99;
$custom-light: #785bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a99",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 153
  },
  "hsl": {
    "h": 248.976,
    "s": 70.95,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35093,
    "c": 0.18863,
    "h": 277.2
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#2D1A99
secondary
#B1C34C
accent
#EE3AD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D1A99

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

Preview Lab → · Contrast checker → · Palette generator →

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