#2D1D87#2D1D87

#2D1D87 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.164 H 279.6°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2D1D87
RGBrgb(45, 29, 135)
HSLhsl(249, 65%, 32%)
HSVhsv(249, 79%, 53%)
CMYKcmyk(66.7%, 78.5%, 0%, 47.1%)
CIE-LABlab(20.77, 39.40, -56.09)
CIE-LCHlch(20.77, 68.55, 305.08°)
OKLaboklab(33.44% 0.0274 -0.1619)
OKLCHoklch(33.44% 0.164 279.6)
XYZxyz(5.8933, 3.1854, 23.2213)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D87 #77871D
analogous
#1D4287 #2D1D87 #621D87
triadic
#2D1D87 #872D1D #1D872D
tetradic
#2D1D87 #871D42 #77871D #1D8762
square
#2D1D87 #871D42 #77871D #1D8762
split-complementary
#2D1D87 #87621D #42871D
monochromatic
#0B0722 #1C1255 #2D1D87 #3E28B9 #5D47D7

Accessibility & contrast

On white

12.83
#2D1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2D1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D87
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D87#FFFFFF#000000##FFFFFF
##2D1D871.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1d87;
/* rgb */ color: rgb(45, 29, 135);
/* oklch */ color: oklch(33.4% 0.164 279.6);
Tailwind
colors: {
  custom: {
    50: '#735cab',
    500: '#2d1d87',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d87;
$custom-light: #735cab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d87",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 249.057,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33438,
    "c": 0.16423,
    "h": 279.6
  },
  "luminance": 0.03186
}

Semantic roles & 50–950 ramp

primary
#2D1D87
secondary
#A8B946
accent
#E840CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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