#2D1D89#2D1D89

#2D1D89 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.167 H 279.3°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#2D1D89
RGBrgb(45, 29, 137)
HSLhsl(249, 65%, 33%)
HSVhsv(249, 79%, 54%)
CMYKcmyk(67.2%, 78.8%, 0%, 46.3%)
CIE-LABlab(20.99, 40.04, -56.99)
CIE-LCHlch(20.99, 69.65, 305.09°)
OKLaboklab(33.66% 0.0268 -0.1645)
OKLCHoklch(33.66% 0.167 279.3)
XYZxyz(6.0355, 3.2423, 23.9698)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D89 #79891D
analogous
#1D4389 #2D1D89 #631D89
triadic
#2D1D89 #892D1D #1D892D
tetradic
#2D1D89 #891D43 #79891D #1D8963
square
#2D1D89 #891D43 #79891D #1D8963
split-complementary
#2D1D89 #89631D #43891D
monochromatic
#0C0824 #1C1256 #2D1D89 #3E28BC #5D48D8

Accessibility & contrast

On white

12.74
#2D1D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2D1D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D89
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D89#FFFFFF#000000##FFFFFF
##2D1D891.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1d89;
/* rgb */ color: rgb(45, 29, 137);
/* oklch */ color: oklch(33.7% 0.167 279.3);
Tailwind
colors: {
  custom: {
    50: '#745cad',
    500: '#2d1d89',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d89;
$custom-light: #745cad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d89",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 248.889,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33656,
    "c": 0.16672,
    "h": 279.3
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#2D1D89
secondary
#A9BA47
accent
#E840CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1D89

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

Preview Lab → · Contrast checker → · Palette generator →

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