#2D1B99#2D1B99

#2D1B99 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.2% C 0.188 H 277.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2D1B99
RGBrgb(45, 27, 153)
HSLhsl(249, 70%, 35%)
HSVhsv(249, 82%, 60%)
CMYKcmyk(70.6%, 82.4%, 0%, 40%)
CIE-LABlab(22.45, 46.06, -64.51)
CIE-LCHlch(22.45, 79.26, 305.53°)
OKLaboklab(35.2% 0.0233 -0.1864)
OKLCHoklch(35.2% 0.188 277.1)
XYZxyz(7.2220, 3.6410, 30.4530)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B99 #87991B
analogous
#1B4899 #2D1B99 #6C1B99
triadic
#2D1B99 #992D1B #1B992D
tetradic
#2D1B99 #991B48 #87991B #1B996C
square
#2D1B99 #991B48 #87991B #1B996C
split-complementary
#2D1B99 #996C1B #48991B
monochromatic
#0E0931 #1E1265 #2D1B99 #3C24CD #634FE0

Accessibility & contrast

On white

12.15
#2D1B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1B99
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B99#FFFFFF#000000##FFFFFF
##2D1B991.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1b99;
/* rgb */ color: rgb(45, 27, 153);
/* oklch */ color: oklch(35.2% 0.188 277.1);
Tailwind
colors: {
  custom: {
    50: '#775cb8',
    500: '#2d1b99',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b99;
$custom-light: #775cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b99",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 153
  },
  "hsl": {
    "h": 248.571,
    "s": 70,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35203,
    "c": 0.18784,
    "h": 277.1
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#2D1B99
secondary
#B2C24E
accent
#ED3BD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D1B99

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

Preview Lab → · Contrast checker → · Palette generator →

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