#2D1D86#2D1D86

#2D1D86 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.163 H 279.8°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2D1D86
RGBrgb(45, 29, 134)
HSLhsl(249, 64%, 32%)
HSVhsv(249, 78%, 53%)
CMYKcmyk(66.4%, 78.4%, 0%, 47.5%)
CIE-LABlab(20.66, 39.08, -55.64)
CIE-LCHlch(20.66, 67.99, 305.08°)
OKLaboklab(33.33% 0.0276 -0.1606)
OKLCHoklch(33.33% 0.163 279.8)
XYZxyz(5.8233, 3.1574, 22.8522)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D86 #76861D
analogous
#1D4286 #2D1D86 #621D86
triadic
#2D1D86 #862D1D #1D862D
tetradic
#2D1D86 #861D42 #76861D #1D8662
square
#2D1D86 #861D42 #76861D #1D8662
split-complementary
#2D1D86 #86621D #42861D
monochromatic
#0B0721 #1C1254 #2D1D86 #3E28B8 #5C46D7

Accessibility & contrast

On white

12.87
#2D1D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D1D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D86
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D86#FFFFFF#000000##FFFFFF
##2D1D861.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1d86;
/* rgb */ color: rgb(45, 29, 134);
/* oklch */ color: oklch(33.3% 0.163 279.8);
Tailwind
colors: {
  custom: {
    50: '#735caa',
    500: '#2d1d86',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d86;
$custom-light: #735caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d86",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 249.143,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3333,
    "c": 0.16299,
    "h": 279.8
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#2D1D86
secondary
#A7B946
accent
#E740CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1D86

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

Preview Lab → · Contrast checker → · Palette generator →

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